Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -97,7 +97,7 @@ |
{ |
let typeMask = RegExpFilter.typeMap[details.type]; |
let docDomain = extractHostFromFrame(frame); |
- let specificOnly = checkWhitelisted(page, frame, |
+ let specificOnly = checkWhitelisted(page, frame, null, |
RegExpFilter.typeMap.GENERICBLOCK); |
// Add a blocking filter for each URL of the element that can be blocked |
@@ -125,7 +125,7 @@ |
} |
// If we couldn't generate any blocking filters, fallback to element hiding |
- if (filters.length == 0 && !checkWhitelisted(page, frame, |
+ if (filters.length == 0 && !checkWhitelisted(page, frame, null, |
RegExpFilter.typeMap.ELEMHIDE)) |
{ |
// Generate CSS selectors based on the element's "id" and |