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

Function ipcSend

resources/preload.js:30–32  ·  view source on GitHub ↗
(apiName, args)

Source from the content-addressed store, hash-verified

28 * 单向 IPC 发送 - 通过 plugin.api 通道发送消息,不等待返回值
29 */
30const ipcSend = (apiName, args) => {
31 electron.ipcRenderer.send('plugin.api', apiName, args)
32}
33
34// 为已弃用的 ipcRenderer.sendTo 添加 polyfill
35// 通过主进程转发消息到目标 webContents

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected