mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Add ipcRenderer send function to preload
This commit is contained in:
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user