import { contextBridge , ipcRenderer } from 'electron' ; const bridgeRenderer = { on ( event , callback ) { ipcRenderer . on ( event , callback ) ; } , send : ( channel , data ? ) => { ipcRenderer . send ( channel , data ) ; } } ; contextBridge . exposeInMainWorld ( 'ipcRenderer' , bridgeRenderer ) ; export { bridgeRenderer } ;