mirror of https://github.com/gorhill/uBlock.git
this fixes #473
This commit is contained in:
parent
adbbd74436
commit
5201946c3f
|
@ -202,6 +202,9 @@ Matrix.prototype.clearRegisters = function() {
|
||||||
|
|
||||||
var is3rdParty = function(srcHostname, desHostname) {
|
var is3rdParty = function(srcHostname, desHostname) {
|
||||||
var srcDomain = domainFromHostname(srcHostname);
|
var srcDomain = domainFromHostname(srcHostname);
|
||||||
|
if ( srcDomain === '' ) {
|
||||||
|
srcDomain = desHostname;
|
||||||
|
}
|
||||||
if ( desHostname.slice(0 - srcDomain.length) !== srcDomain ) {
|
if ( desHostname.slice(0 - srcDomain.length) !== srcDomain ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ var getHostnameDict = function(hostnameToCountMap) {
|
||||||
if ( r.hasOwnProperty(hostname) ) {
|
if ( r.hasOwnProperty(hostname) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
domain = domainFromHostname(hostname);
|
domain = domainFromHostname(hostname) || hostname;
|
||||||
counts = hostnameToCountMap[domain] || 0;
|
counts = hostnameToCountMap[domain] || 0;
|
||||||
r[domain] = {
|
r[domain] = {
|
||||||
domain: domain,
|
domain: domain,
|
||||||
|
|
Loading…
Reference in New Issue