From 71f4a53b41d3a200a550a8414f212a77bbe5ffd3 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 3 May 2017 19:06:14 +0300 Subject: [PATCH] fixup! --- storage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage.js b/storage.js index 76e1969c..92b1882c 100644 --- a/storage.js +++ b/storage.js @@ -239,7 +239,7 @@ function saveStyle(style) { if (reason == 'update' || reason == 'update-digest') { return calcStyleDigest(style).then(digest => { style.originalDigest = digest; - decide(); + return decide(); }); } if (reason == 'import') { @@ -311,7 +311,6 @@ function saveStyle(style) { function deleteStyle({id, notify = true}) { id = Number(id); - chrome.storage.local.remove('originalDigest' + id, ignoreChromeError); // TODO: remove in the future return dbExec('delete', id).then(() => { invalidateCache({deletedId: id}); if (notify) {