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,
blockCount: blockCount,
allowCount: allowCount,
totalBlockCount: 0,
totalAllowCount: 0
totalBlockCount: blockCount,
totalAllowCount: allowCount
};
} else {
de = r[domain];

View File

@ -286,7 +286,7 @@ housekeep itself.
this.rawURL = stackEntry.url;
this.normalURL = µb.normalizePageURL(this.tabId, this.rawURL);
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.