MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / sendCmd

Function sendCmd

example/tests/gm_value_test.js:101–103  ·  view source on GitHub ↗
(win, cmd, data = {})

Source from the content-addressed store, hash-verified

99 }
100
101 function sendCmd(win, cmd, data = {}) {
102 win.postMessage({ t: MSG_NS + 'CMD', cmd, ...data }, TARGET_ORIGIN);
103 }
104
105 /* ══════════════════════════════════════════════════════════
106 IFRAME FRAME LOGIC

Callers 1

dispatchCmdFunction · 0.85

Calls 1

postMessageMethod · 0.65

Tested by

no test coverage detected