Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -18,7 +18,6 @@ |
let {extractHostFromFrame, stringifyURL, isThirdParty} = require("url"); |
let {getKey, isFrameWhitelisted} = require("whitelisting"); |
let {defaultMatcher} = require("matcher"); |
-let {WhitelistFilter} = require("filterClasses"); |
function escapeChar(chr) |
{ |
@@ -97,13 +96,13 @@ |
{ |
url = stringifyURL(urlObj); |
- let filter = defaultMatcher.matchesAny( |
+ let filter = defaultMatcher.whitelist.matchesAny( |
url, details.type, docDomain, |
isThirdParty(urlObj, docDomain), |
getKey(page, frame) |
); |
- if (!(filter instanceof WhitelistFilter)) |
+ if (!filter) |
{ |
let filterText = url.replace(/^[\w\-]+:\/+(?:www\.)?/, "||"); |