From 38b4dfdfaeb675c93eaeaaa3812d93fd2fe25fe5 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 7 Feb 2015 13:48:22 -0500 Subject: [PATCH] code review re. #704 --- src/js/popup.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/js/popup.js b/src/js/popup.js index ed864b79e..21cdc6e90 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);