mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 14:37:06 +01:00
Add ipcRenderer send function to preload
This commit is contained in:
parent
cef92243f5
commit
6056504f00
@ -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,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user