Index: lib/filterListener.js |
=================================================================== |
--- a/lib/filterListener.js |
+++ b/lib/filterListener.js |
@@ -236,31 +236,31 @@ |
if (!subscription.disabled) |
subscription.filters.forEach(removeFilter); |
} |
function onSubscriptionDisabled(subscription, newValue) |
{ |
FilterListener.setDirty(1); |
- if (subscription.url in FilterStorage.knownSubscriptions) |
+ if (FilterStorage.knownSubscriptions.has(subscription.url)) |
{ |
if (newValue == false) |
addFilters(subscription.filters); |
else |
subscription.filters.forEach(removeFilter); |
} |
} |
function onSubscriptionUpdated(subscription) |
{ |
FilterListener.setDirty(1); |
- if (subscription.url in FilterStorage.knownSubscriptions && |
- !subscription.disabled) |
+ if (!subscription.disabled && |
Manish Jethani
2018/06/06 11:04:42
Better to check if the subscription is disabled fi
kzar
2018/06/07 13:52:26
Acknowledged.
|
+ FilterStorage.knownSubscriptions.has(subscription.url)) |
{ |
subscription.oldFilters.forEach(removeFilter); |
addFilters(subscription.filters); |
} |
} |
function onFilterHitCount(filter, newValue) |
{ |