BetterDiscordApp-rauenzi/preload/src/api/electron.js

13 lines
332 B
JavaScript
Raw Normal View History

2022-09-06 05:58:16 +02:00
import {ipcRenderer as IPC, shell} from "electron";
export const ipcRenderer = {
send: IPC.send.bind(IPC),
sendToHost: IPC.sendToHost.bind(IPC),
sendTo: IPC.sendTo.bind(IPC),
sendSync: IPC.sendSync.bind(IPC),
invoke: IPC.invoke.bind(IPC),
on: IPC.on.bind(IPC),
off: IPC.off.bind(IPC)
};
export {shell};