1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-17 01:35:00 +12:00

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

This commit is contained in:
gorhill 2014-10-22 21:26:37 -04:00
parent 78555a5b7c
commit 3952a09f6c

View file

@ -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);