Rename reported popup panel property

This commit is contained in:
Raymond Hill 2023-04-04 13:42:09 -04:00
parent 620a96531c
commit 0f5384ee0d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 6 additions and 6 deletions

View File

@ -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', {