From 0a082f30d21f3861fcd0f555102f4d24d93ae05c Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 25 Apr 2018 10:37:07 +0300 Subject: [PATCH] Chrome with NativeCrxBindings: ignore lastError in injectCS --- background/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/background.js b/background/background.js index 48122647..04e08665 100644 --- a/background/background.js +++ b/background/background.js @@ -239,7 +239,7 @@ window.addEventListener('storageReady', function _() { } const injectCS = (cs, tabId) => { - if (chrome.runtime.lastError) return; + ignoreChromeError(); chrome.tabs.executeScript(tabId, { file: cs.js[0], runAt: cs.run_at,