This commit is contained in:
gorhill 2014-06-28 11:41:49 -04:00
parent bcaa139362
commit 72be27fda6
1 changed files with 2 additions and 2 deletions

View File

@ -1403,8 +1403,8 @@ FilterContainer.prototype.matchString = function(pageDetails, url, requestType,
// block filters first, and test allow filters if and only if there is a // block filters first, and test allow filters if and only if there is a
// hit on a block filter. Since there is a high likelihood of no hit, // hit on a block filter. Since there is a high likelihood of no hit,
// testing allow filter by default is likely wasted work, hence allow // testing allow filter by default is likely wasted work, hence allow
// filters are tested *only* if there is a hit on a (unlikely) hit on a // filters are tested *only* if there is a (unlikely) hit on a block
// block filter. // filter.
var pageDomain = pageDetails.pageDomain || ''; var pageDomain = pageDetails.pageDomain || '';
var party = requestHostname.slice(-pageDomain.length) === pageDomain ? var party = requestHostname.slice(-pageDomain.length) === pageDomain ?