From b0f1c85cd870ad2cc331c613fec55351f0239509 Mon Sep 17 00:00:00 2001 From: tartpvule <4371378-tartpvule@users.noreply.gitlab.com> Date: Thu, 12 Sep 2019 16:45:56 +0000 Subject: [PATCH] Save on storage change and deferred save, part 3 Insert calls to saveOnDisk and deferSaveOnDisk --- clearurls.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clearurls.js b/clearurls.js index ef07255..4b4b1e5 100644 --- a/clearurls.js +++ b/clearurls.js @@ -345,6 +345,7 @@ function start() } storage.ClearURLsData = JSON.parse(storage.ClearURLsData); toObject(storage.ClearURLsData); + saveOnDisk(['ClearURLsData', 'dataHash', 'hashStatus']); } }); } @@ -777,5 +778,6 @@ function start() "timestamp": Date.now() } ); + deferSaveOnDisk('log'); } }