mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 15:05:57 +08:00
add
This commit is contained in:
parent
65a36753b6
commit
02355d42b0
@ -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) } }
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user