Index: lib/filterStorage.js |
=================================================================== |
--- a/lib/filterStorage.js |
+++ b/lib/filterStorage.js |
@@ -29,6 +29,7 @@ |
let {Subscription, SpecialSubscription, ExternalSubscription} = require("subscriptionClasses"); |
let {FilterNotifier} = require("filterNotifier"); |
let {Utils} = require("utils"); |
+let {FilterHits} = require("filterHits"); |
/** |
* Version number of the filter storage file format. |
@@ -336,6 +337,8 @@ |
filter.hitCount++; |
filter.lastHit = Date.now(); |
+ if (Prefs.sendstats) |
+ FilterHits.increaseFilterHits(filter, wnd); |
}, |
/** |
@@ -443,7 +446,9 @@ |
if (sourceFile != this.sourceFile) |
this.saveToDisk(); |
- |
+ |
+ if (Prefs.sendstats) |
+ FilterHits.loadFilterHitsFromDatabase(); |
}.bind(this); |
let explicitFile; |