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

Class WindowPostMessage

packages/message/window_message.ts:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21class WindowPostMessage implements PostMessage {
22 constructor(private target: Window) {}
23
24 postMessage<T = any>(message: T): void {
25 this.target.postMessage(message, "*");
26 }
27}
28
29// 消息体
30export type WindowMessageBody<T = any> = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected