dont display literal "1st-party" when there is no 1st-party

pull/2/head
gorhill 10 years ago
parent 78555a5b7c
commit 3952a09f6c

@ -632,6 +632,11 @@ function makeMatrixGroup0Section(hostnames) {
}
function makeMatrixGroup0(group) {
// Show literal "1st-party" row only if there is
// at least one 1st-party hostname
if ( Object.keys(groupsSnapshot[1]).length === 0 ) {
return;
}
var groupDiv = createMatrixGroup().addClass('g0');
makeMatrixGroup0Section().appendTo(groupDiv);
groupDiv.appendTo(matrixList);

Loading…
Cancel
Save