Chrome with NativeCrxBindings: check lastError in injectCS

This commit is contained in:
tophf 2018-04-24 22:15:28 +03:00
parent 4a1c1636fe
commit 677bf7b9bf

View File

@ -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,