refactor: preload communication
This commit is contained in:
8
src/preload/communication.ts
Normal file
8
src/preload/communication.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Renderer and Main bridge
|
||||
* @refresh https://newbedev.com/how-to-use-preload-js-properly-in-electron
|
||||
*/
|
||||
import { contextBridge, ipcRenderer } from 'electron'
|
||||
|
||||
contextBridge.exposeInMainWorld('ipcRenderer', ipcRenderer)
|
||||
|
||||
Reference in New Issue
Block a user