From a473020dbe07c999b198930f24688c3408205216 Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 8 Feb 2020 01:21:12 +0800 Subject: [PATCH] Fix: the return type of dbExecChromeStorage('put') is wrong --- background/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/db.js b/background/db.js index 46fd0c9b..45372a38 100644 --- a/background/db.js +++ b/background/db.js @@ -169,7 +169,7 @@ const db = (() => { }); } return chromeLocal.setValue(STYLE_KEY_PREFIX + data.id, data) - .then(() => (chrome.runtime.lastError ? Promise.reject() : data.id)); + .then(() => ({target: {result: data.id}})); case 'putMany': { const newItems = data.filter(i => !i.id);