mirror of https://github.com/gorhill/uBlock.git
Rename reported popup panel property
This commit is contained in:
parent
620a96531c
commit
0f5384ee0d
|
@ -907,7 +907,7 @@ const gotoReport = function() {
|
||||||
popupPanel[name] = !expected;
|
popupPanel[name] = !expected;
|
||||||
}
|
}
|
||||||
if ( hostnameToSortableTokenMap.size !== 0 ) {
|
if ( hostnameToSortableTokenMap.size !== 0 ) {
|
||||||
const blockedDetails = {};
|
const network = {};
|
||||||
const hostnames =
|
const hostnames =
|
||||||
Array.from(hostnameToSortableTokenMap.keys()).sort(hostnameCompare);
|
Array.from(hostnameToSortableTokenMap.keys()).sort(hostnameCompare);
|
||||||
for ( const hostname of hostnames ) {
|
for ( const hostname of hostnames ) {
|
||||||
|
@ -915,13 +915,13 @@ const gotoReport = function() {
|
||||||
const count = entry.counts.blocked.any;
|
const count = entry.counts.blocked.any;
|
||||||
if ( count === 0 ) { continue; }
|
if ( count === 0 ) { continue; }
|
||||||
const domain = entry.domain;
|
const domain = entry.domain;
|
||||||
if ( blockedDetails[domain] === undefined ) {
|
if ( network[domain] === undefined ) {
|
||||||
blockedDetails[domain] = 0;
|
network[domain] = 0;
|
||||||
}
|
}
|
||||||
blockedDetails[domain] += count;
|
network[domain] += count;
|
||||||
}
|
}
|
||||||
if ( Object.keys(blockedDetails).length !== 0 ) {
|
if ( Object.keys(network).length !== 0 ) {
|
||||||
popupPanel.blockedDetails = blockedDetails;
|
popupPanel.network = network;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
messaging.send('popupPanel', {
|
messaging.send('popupPanel', {
|
||||||
|
|
Loading…
Reference in New Issue