Save on storage change and deferred save, part 3

Insert calls to saveOnDisk and deferSaveOnDisk
This commit is contained in:
tartpvule 2019-09-12 16:45:56 +00:00
parent 891723b7b9
commit b0f1c85cd8

View File

@ -345,6 +345,7 @@ function start()
} }
storage.ClearURLsData = JSON.parse(storage.ClearURLsData); storage.ClearURLsData = JSON.parse(storage.ClearURLsData);
toObject(storage.ClearURLsData); toObject(storage.ClearURLsData);
saveOnDisk(['ClearURLsData', 'dataHash', 'hashStatus']);
} }
}); });
} }
@ -777,5 +778,6 @@ function start()
"timestamp": Date.now() "timestamp": Date.now()
} }
); );
deferSaveOnDisk('log');
} }
} }