rdesktop
filip mertens 1 year ago
parent 881d0c1b12
commit 3b26898fb1
  1. 1
      apps/1test/src/global.d.ts
  2. 1
      apps/1test/src/preload.ts

@ -2,7 +2,6 @@ export interface IElectronAPI {
activatePlugin: (name: string) => Promise<boolean>
plugins: {
name: string
activate: () => Promise<boolean>
on: (cb: any) => void
send: (message: Partial<Message>) => void
}[]

@ -16,7 +16,6 @@ contextBridge.exposeInMainWorld('electronAPI', {
plugins: exposedPLugins.map(name => {
return {
name,
activate: () => ipcRenderer.invoke('engine:activatePlugin', name),
on: (cb:any) => ipcRenderer.on(`${name}:send`, cb),
send: (message: Partial<Message>) => ipcRenderer.send(`${name}:on`, message)
}

Loading…
Cancel
Save