mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-06-01 13:54:05 +00:00
12 lines
313 B
TypeScript
12 lines
313 B
TypeScript
import { Msg, RequestSupportData } from "../../core/types";
|
|
import { bridge } from "./bridge";
|
|
|
|
export function checkSupport() {
|
|
bridge.send(Msg.RequestSupport, {} as RequestSupportData);
|
|
}
|
|
export function execInspect() {
|
|
setTimeout(() => {
|
|
chrome.devtools.inspectedWindow.eval(`DoInspect()`);
|
|
}, 5);
|
|
}
|