Index: lib/notification.js |
diff --git a/lib/notification.js b/lib/notification.js |
index 0c80f785c2e0734212cbef1538d5a95b3aeb557d..bcae0755d69b1b97ab88afb2232c603647f48b3a 100644 |
--- a/lib/notification.js |
+++ b/lib/notification.js |
@@ -25,7 +25,7 @@ let {Prefs} = require("prefs"); |
let {Downloader, Downloadable, MILLIS_IN_MINUTE, MILLIS_IN_HOUR, MILLIS_IN_DAY} = require("downloader"); |
let {Utils} = require("utils"); |
let {Matcher} = require("matcher"); |
-let {Filter} = require("filterClasses"); |
+let {Filter, RegExpFilter} = require("filterClasses"); |
let INITIAL_DELAY = 1 * MILLIS_IN_MINUTE; |
let CHECK_INTERVAL = 1 * MILLIS_IN_HOUR; |
@@ -222,7 +222,7 @@ let Notification = exports.Notification = |
let matcher = new Matcher(); |
for (let urlFilter of notification.urlFilters) |
matcher.add(Filter.fromText(urlFilter)); |
- if (!matcher.matchesAny(url, "DOCUMENT", url)) |
+ if (!matcher.matchesAny(url, RegExpFilter.typeMap.DOCUMENT, url)) |
continue; |
} |
else |