This commit is contained in:
cilame 2021-10-18 09:17:02 +08:00
parent 65a36753b6
commit 02355d42b0

View File

@ -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) } }
});
}