mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
code review
This commit is contained in:
parent
72f5e44ec0
commit
013b4b1a88
@ -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 New Issue
Block a user