Index: lib/prefs.js |
=================================================================== |
--- a/lib/prefs.js |
+++ b/lib/prefs.js |
@@ -300,8 +300,6 @@ |
// Saving one storage value causes all others to be saved as well on Gecko. |
// Make sure that updating ad counter doesn't cause the filters data to be |
// saved frequently as a side-effect. |
- const MIN_UPDATE_INTERVAL = 60 * 1000; |
- let lastUpdate = -MIN_UPDATE_INTERVAL; |
let promise = null; |
customSave.set("blocked_total", pref => |
{ |
@@ -312,11 +310,10 @@ |
setTimeout( |
() => |
{ |
- lastUpdate = performance.now(); |
promise = null; |
savePref(pref).then(resolve, reject); |
}, |
- lastUpdate + MIN_UPDATE_INTERVAL - performance.now() |
+ 60 * 1000 |
); |
}); |
} |