Skip to content

Commit

Permalink
Change frequency of save-to-storage blocking stats
Browse files Browse the repository at this point in the history
In order to prepare for support of non-persistent background
process.
  • Loading branch information
gorhill committed Nov 25, 2023
1 parent 187c06f commit 5a338b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ import {
};

const saveTimer = vAPI.defer.create(shouldSave);
const saveDelay = { min: 4 };
const saveDelay = { sec: 23 };

saveTimer.on(saveDelay);
saveTimer.onidle(saveDelay);

µb.saveLocalSettings = function() {
localSettingsLastSaved = Date.now();
Expand Down

0 comments on commit 5a338b7

Please sign in to comment.