mirror of https://github.com/gorhill/uBlock.git
Report only stats for eTLD+1 in troubleshooting information
Related commit:
- affdde02a9
This commit is contained in:
parent
affdde02a9
commit
6d1b44b42c
|
@ -862,8 +862,13 @@ const gotoReport = function() {
|
|||
Array.from(hostnameToSortableTokenMap.keys()).sort(hostnameCompare);
|
||||
for ( const hostname of hostnames ) {
|
||||
const entry = popupData.hostnameDict[hostname];
|
||||
if ( entry.counts.blocked.any === 0 ) { continue; }
|
||||
blockedDetails[hostname] = entry.counts.blocked.any;
|
||||
const count = entry.counts.blocked.any;
|
||||
if ( count === 0 ) { continue; }
|
||||
const domain = entry.domain;
|
||||
if ( blockedDetails[domain] === undefined ) {
|
||||
blockedDetails[domain] = 0;
|
||||
}
|
||||
blockedDetails[domain] += count;
|
||||
}
|
||||
if ( Object.keys(blockedDetails).length !== 0 ) {
|
||||
popupPanel.blockedDetails = blockedDetails;
|
||||
|
|
Loading…
Reference in New Issue