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