(tab, commandName, commandParams = {})
| 495 | // https://chromedevtools.github.io/devtools-protocol/ |
| 496 | // https://chromedevtools.github.io/devtools-protocol/tot/Page/#event-captureScreenshot |
| 497 | export async function sendDevtoolCommand(tab, commandName, commandParams = {}) { |
| 498 | let res = await chrome.debugger.sendCommand( |
| 499 | { tabId: tab.id }, |
| 500 | commandName, |
| 501 | commandParams |
| 502 | ); |
| 503 | return res; |
| 504 | } |
| 505 | |
| 506 | // https://developer.chrome.com/docs/extensions/reference/tabs/#method-captureVisibleTab |
| 507 | // https://stackoverflow.com/q/14990822/11898496 |
no outgoing calls
no test coverage detected