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);