Open History to see the last commit
1// Exposes real ipcRenderer calls and main-process events to the oracle page.
2const { contextBridge, ipcRenderer } = require(`electron`)
3
4contextBridge.exposeInMainWorld(`reloadBridge`, {
5 invoke: (channel, ...args) => ipcRenderer.invoke(channel, ...args),
6 on: (channel, listener) =>
7 ipcRenderer.on(channel, (_event, ...args) => listener(...args)),
8})