Index: lib/notification.js |
=================================================================== |
--- a/lib/notification.js |
+++ b/lib/notification.js |
@@ -268,17 +268,17 @@ |
} |
let exception = defaultMatcher.matchesAny( |
url, RegExpFilter.typeMap.DOCUMENT, host, false, null |
); |
if (exception instanceof WhitelistFilter) |
continue; |
- let matcher = new Matcher(); |
+ let matcher = Matcher.create(); |
for (let urlFilter of notification.urlFilters) |
matcher.add(Filter.fromText(urlFilter)); |
if (!matcher.matchesAny(url, RegExpFilter.typeMap.DOCUMENT, host, |
false, null)) |
{ |
continue; |
} |
} |