diff options
Diffstat (limited to 'src/js')
-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); |