mirror of https://github.com/gorhill/uBlock.git
code review re. #704
This commit is contained in:
parent
81e99c388d
commit
38b4dfdfae
|
@ -300,6 +300,13 @@ var renderPrivacyExposure = function() {
|
||||||
desHostnameDone[des] = true;
|
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())
|
var summary = domainsHitStr.replace('{{count}}', touchedDomainCount.toLocaleString())
|
||||||
.replace('{{total}}', allDomainCount.toLocaleString());
|
.replace('{{total}}', allDomainCount.toLocaleString());
|
||||||
uDom('#popupHitDomainCount').text(summary);
|
uDom('#popupHitDomainCount').text(summary);
|
||||||
|
|
Loading…
Reference in New Issue