Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -113,17 +113,17 @@ |
if (!filter) |
{ |
let filterText = url.replace(/^[\w-]+:\/+(?:www\.)?/, "||"); |
if (specificOnly) |
filterText += "$domain=" + docDomain; |
- if (filters.indexOf(filterText) == -1) |
+ if (!filters.includes(filterText)) |
filters.push(filterText); |
} |
} |
// If we couldn't generate any blocking filters, fallback to element hiding |
if (filters.length == 0 && !checkWhitelisted(page, frame, |
RegExpFilter.typeMap.ELEMHIDE)) |
{ |