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:
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…
Reference in a new issue