import { contextBridge , ipcRenderer } from "electron" ; contextBridge . exposeInMainWorld ( "isCrusherRecorder" , true ) ; contextBridge . exposeInMainWorld ( "recorder" , { sendMessage : async ( ... args ) => { ipcRenderer . sendToHost ( "recorder-message" , ... args ) ; } , } ) ;