1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

code review re. #704

This commit is contained in:
gorhill 2015-02-07 13:48:22 -05:00
parent 81e99c388d
commit 38b4dfdfae

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