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

Class CustomEventPostMessage

packages/message/custom_event_message.ts:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24const maxInteger = Number.MAX_SAFE_INTEGER;
25
26export class CustomEventPostMessage implements PostMessage {
27 constructor(private send: CustomEventMessage) {}
28
29 postMessage<T = any>(message: T): void {
30 this.send.nativeSend(message);
31 }
32}
33
34// 使用CustomEvent来进行通讯, 可以在content与inject中传递一些dom对象
35export class CustomEventMessage implements Message {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected