Index: lib/antiadblockInit.js |
=================================================================== |
--- a/lib/antiadblockInit.js |
+++ b/lib/antiadblockInit.js |
@@ -40,17 +40,17 @@ exports.initAntiAdblockNotification = fu |
let subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl); |
if (subscription.url in FilterStorage.knownSubscriptions) |
subscription.disabled = !approved; |
} |
function addAntiAdblockNotification(subscription) |
{ |
let urlFilters = []; |
- for each (let filter in subscription.filters) |
+ for (let filter of subscription.filters) |
if (filter instanceof ActiveFilter) |
for (let domain in filter.domains) |
if (domain && urlFilters.indexOf(domain) == -1) |
urlFilters.push(domain); |
notification.urlFilters = urlFilters; |
Notification.addNotification(notification); |
Notification.addQuestionListener(notification.id, notificationListener); |
} |