code review re. #704

This commit is contained in:
gorhill 2015-02-07 13:48:22 -05:00
parent 81e99c388d
commit 38b4dfdfae
1 changed files with 7 additions and 0 deletions

View File

@ -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);