chore: update for 2023
parent
4a221a890a
commit
e55b6e949e
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,7 @@
|
|||||||
import { ipcRenderer } from 'electron'
|
import { contextBridge, ipcRenderer } from 'electron'
|
||||||
|
|
||||||
|
contextBridge.exposeInMainWorld('ipcRenderer', {
|
||||||
|
invoke: (a, b = null) => ipcRenderer.invoke(a, b),
|
||||||
|
on: (a, b = null) => ipcRenderer.on(a, b),
|
||||||
|
})
|
||||||
|
|
||||||
window.ipcRenderer = ipcRenderer
|
|
Loading…
Reference in New Issue