From 02355d42b02f85a5b4e85aee76a1bf90ba2c8b6b Mon Sep 17 00:00:00 2001 From: cilame Date: Mon, 18 Oct 2021 09:17:02 +0800 Subject: [PATCH] add --- background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/background.js b/background.js index 456d2e8..fbd45c4 100644 --- a/background.js +++ b/background.js @@ -10,6 +10,7 @@ function sendCommand(method, params, source, chainfun){ chrome.debugger.sendCommand(source, method, params, function(result){ if (chrome.runtime.lastError) { console.error('chrome.runtime.lastError', chrome.runtime.lastError) + if (chrome.runtime.lastError.message.indexOf('Cannot access a chrome://') != -1){ attached = false } } else { if (chainfun){ chainfun(result) } } }); }