mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
code review
This commit is contained in:
parent
72f5e44ec0
commit
013b4b1a88
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue