(tabId, method, commandParams)
| 555 | }; |
| 556 | })(); |
| 557 | function sendDebuggerCommand(tabId, method, commandParams) { |
| 558 | return new Promise((resolve, reject) => |
| 559 | chrome.debugger.sendCommand({tabId}, method, commandParams, result => { |
| 560 | if (result) { resolve(result); } else { reject(chrome.runtime.lastError); } |
| 561 | }) |
| 562 | ); |
| 563 | } |
| 564 | |
| 565 | // possible idea: console (using Log API instead of monkey-patching) |
| 566 | // resources/ |
no outgoing calls
no test coverage detected