1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00
This commit is contained in:
gorhill 2016-02-22 15:54:07 -05:00
parent e39efa32a0
commit abb6d1a610
2 changed files with 3 additions and 3 deletions

View File

@ -211,8 +211,8 @@ var getHostnameDict = function(hostnameToCountMap) {
domain: domain, domain: domain,
blockCount: blockCount, blockCount: blockCount,
allowCount: allowCount, allowCount: allowCount,
totalBlockCount: 0, totalBlockCount: blockCount,
totalAllowCount: 0 totalAllowCount: allowCount
}; };
} else { } else {
de = r[domain]; de = r[domain];

View File

@ -286,7 +286,7 @@ housekeep itself.
this.rawURL = stackEntry.url; this.rawURL = stackEntry.url;
this.normalURL = µb.normalizePageURL(this.tabId, this.rawURL); this.normalURL = µb.normalizePageURL(this.tabId, this.rawURL);
this.rootHostname = µb.URI.hostnameFromURI(this.normalURL); this.rootHostname = µb.URI.hostnameFromURI(this.normalURL);
this.rootDomain = µb.URI.domainFromHostname(this.rootHostname); this.rootDomain = µb.URI.domainFromHostname(this.rootHostname) || this.rootHostname;
}; };
// Called whenever a candidate root URL is spotted for the tab. // Called whenever a candidate root URL is spotted for the tab.