1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

code review

This commit is contained in:
gorhill 2015-11-29 17:57:55 -05:00
parent 72f5e44ec0
commit 013b4b1a88

View File

@ -52,12 +52,12 @@
var save = function() {
this.localSettingsSaveTime = Date.now();
vAPI.storage.set(this.localSettings);
}.bind(µBlock);
};
var onTimeout = function() {
var µb = µBlock;
if ( µb.localSettingsModifyTime > µb.localSettingsSaveTime ) {
save();
save.call(µb);
}
vAPI.setTimeout(onTimeout, saveAfter);
};