MCPcopy
hub / github.com/osnr/TabFS / sendDebuggerCommand

Function sendDebuggerCommand

extension/background.js:557–563  ·  view source on GitHub ↗
(tabId, method, commandParams)

Source from the content-addressed store, hash-verified

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/

Callers 2

background.jsFile · 0.85
readdirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected