Add ipcRenderer send function to preload

This commit is contained in:
jeffvli 2023-05-13 00:40:02 -07:00 committed by Jeff
parent cef92243f5
commit 6056504f00

View File

@ -4,6 +4,11 @@ const removeAllListeners = (channel: string) => {
ipcRenderer.removeAllListeners(channel); ipcRenderer.removeAllListeners(channel);
}; };
const send = (channel: string, ...args: any[]) => {
ipcRenderer.send(channel, ...args);
};
export const ipc = { export const ipc = {
removeAllListeners, removeAllListeners,
send,
}; };