MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / sendToSuperPanel

Method sendToSuperPanel

src/main/core/superPanelManager.ts:557–563  ·  view source on GitHub ↗

* 发送数据到超级面板窗口(窗口未就绪时缓存消息)

(channel: string, data: any)

Source from the content-addressed store, hash-verified

555 * 发送数据到超级面板窗口(窗口未就绪时缓存消息)
556 */
557 private sendToSuperPanel(channel: string, data: any): void {
558 if (this.superPanelWindow && !this.superPanelWindow.isDestroyed() && this.windowReady) {
559 this.superPanelWindow.webContents.send(channel, data)
560 } else {
561 this.pendingMessages.push({ channel, data })
562 }
563 }
564
565 /**
566 * 设置 IPC 监听

Callers 3

requestTranslationMethod · 0.95
loadPinnedCommandsMethod · 0.95
setupIPCMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected