Index: lib/filterListener.js |
=================================================================== |
--- a/lib/filterListener.js |
+++ b/lib/filterListener.js |
@@ -266,24 +266,24 @@ |
{ |
if (newValue == false) |
addFilters(subscription.filters); |
else |
subscription.filters.forEach(removeFilter); |
} |
} |
-function onSubscriptionUpdated(subscription) |
+function onSubscriptionUpdated(subscription, oldFilters) |
{ |
FilterListener.setDirty(1); |
if (!subscription.disabled && |
FilterStorage.knownSubscriptions.has(subscription.url)) |
{ |
- subscription.oldFilters.forEach(removeFilter); |
+ oldFilters.forEach(removeFilter); |
addFilters(subscription.filters); |
} |
} |
function onFilterHitCount(filter, newValue) |
{ |
if (newValue == 0) |
FilterListener.setDirty(0); |