From fc5c00e37d6875fd6e97add7865dd375be165b58 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 15 Nov 2017 07:11:46 +0300 Subject: [PATCH] all actions must always return a Promise --- background/style-via-api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/background/style-via-api.js b/background/style-via-api.js index 664a1ecb..8bdde4b9 100644 --- a/background/style-via-api.js +++ b/background/style-via-api.js @@ -129,6 +129,8 @@ const styleViaAPI = !CHROME && (() => { const tasks = Object.keys(frameStyles) .map(id => removeCSS(tab.id, frameId, frameStyles[id].join('\n'))); return Promise.all(tasks); + } else { + return NOP; } }