Index: lib/filterListener.js |
=================================================================== |
--- a/lib/filterListener.js |
+++ b/lib/filterListener.js |
@@ -278,19 +278,19 @@ |
if (!subscription.disabled && |
filterStorage.knownSubscriptions.has(subscription.url)) |
{ |
oldFilters.forEach(removeFilter); |
addFilters(subscription.filters); |
} |
} |
-function onFilterHitCount(filter, newValue) |
+function onFilterHitCount(filter, newValue, oldValue) |
{ |
- if (newValue == 0) |
+ if (newValue == 0 && oldValue != 0) |
FilterListener.setDirty(0); |
else |
FilterListener.setDirty(0.002); |
} |
function onFilterLastHit() |
{ |
FilterListener.setDirty(0.002); |