Index: lib/filterStorage.js |
=================================================================== |
--- a/lib/filterStorage.js |
+++ b/lib/filterStorage.js |
@@ -30,6 +30,7 @@ |
let {FilterNotifier} = require("filterNotifier"); |
let {Utils} = require("utils"); |
let {TimeLine} = require("timeline"); |
+let {FilterHits} = require("filterHits"); |
/** |
* Version number of the filter storage file format. |
@@ -333,6 +334,8 @@ |
filter.hitCount++; |
filter.lastHit = Date.now(); |
+ if (Prefs.sendstats) |
+ FilterHits.increaseFilterHits(filter, wnd); |
}, |
/** |
@@ -448,7 +451,9 @@ |
if (sourceFile != this.sourceFile) |
this.saveToDisk(); |
- |
+ |
+ if (Prefs.sendstats) |
+ FilterHits.loadFilterHitsFromDisk(); |
TimeLine.leave("FilterStorage.loadFromDisk() read callback done"); |
}.bind(this); |