diff options
author | gorhill <rhill@raymondhill.net> | 2015-02-07 13:48:22 -0500 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-02-07 13:48:22 -0500 |
commit | 38b4dfdfaeb675c93eaeaaa3812d93fd2fe25fe5 (patch) | |
tree | eb08c6ddeba104928c99ef5cc00c673b07f890f1 | |
parent | 81e99c388da5a701c90590d6155693a5332cd224 (diff) | |
download | uBlock-38b4dfdfaeb675c93eaeaaa3812d93fd2fe25fe5.zip uBlock-38b4dfdfaeb675c93eaeaaa3812d93fd2fe25fe5.tar.gz uBlock-38b4dfdfaeb675c93eaeaaa3812d93fd2fe25fe5.tar.bz2 |
code review re. #704
-rw-r--r-- | src/js/popup.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/js/popup.js b/src/js/popup.js index ed864b7..21cdc6e 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -300,6 +300,13 @@ var renderPrivacyExposure = function() { desHostnameDone[des] = true; } + // The root page domain must always be counted as connected: that's from + // where the root document was fetched. + if ( allDomains[popupData.pdageDomain] !== true ) { + allDomains[popupData.pdageDomain] = true; + touchedDomainCount += 1; + } + var summary = domainsHitStr.replace('{{count}}', touchedDomainCount.toLocaleString()) .replace('{{total}}', allDomainCount.toLocaleString()); uDom('#popupHitDomainCount').text(summary); |