Browse Source

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

pull/2/head
gorhill 10 years ago
parent
commit
3952a09f6c
  1. 5
      src/js/popup.js

5
src/js/popup.js

@ -632,6 +632,11 @@ function makeMatrixGroup0Section(hostnames) {
} }
function makeMatrixGroup0(group) { 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'); var groupDiv = createMatrixGroup().addClass('g0');
makeMatrixGroup0Section().appendTo(groupDiv); makeMatrixGroup0Section().appendTo(groupDiv);
groupDiv.appendTo(matrixList); groupDiv.appendTo(matrixList);

Loading…
Cancel
Save