diff --git a/src/main/preload/ipc.ts b/src/main/preload/ipc.ts index 0018608a..780b8830 100644 --- a/src/main/preload/ipc.ts +++ b/src/main/preload/ipc.ts @@ -4,6 +4,11 @@ const removeAllListeners = (channel: string) => { ipcRenderer.removeAllListeners(channel); }; +const send = (channel: string, ...args: any[]) => { + ipcRenderer.send(channel, ...args); +}; + export const ipc = { removeAllListeners, + send, };