From 677bf7b9bf7ff6baf5d83d5721556a258815d144 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 24 Apr 2018 22:15:28 +0300 Subject: [PATCH] Chrome with NativeCrxBindings: check lastError in injectCS --- background/background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/background/background.js b/background/background.js index a699fdfa..48122647 100644 --- a/background/background.js +++ b/background/background.js @@ -239,6 +239,7 @@ window.addEventListener('storageReady', function _() { } const injectCS = (cs, tabId) => { + if (chrome.runtime.lastError) return; chrome.tabs.executeScript(tabId, { file: cs.js[0], runAt: cs.run_at,