rdesktop^2
filip mertens 1 year ago
parent 12b51f44bd
commit 05f5bad529
  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