diff --git a/apps/1test/src/global.d.ts b/apps/1test/src/global.d.ts index eefcc940a0..672fea248b 100644 --- a/apps/1test/src/global.d.ts +++ b/apps/1test/src/global.d.ts @@ -2,7 +2,6 @@ export interface IElectronAPI { activatePlugin: (name: string) => Promise plugins: { name: string - activate: () => Promise on: (cb: any) => void send: (message: Partial) => void }[] diff --git a/apps/1test/src/preload.ts b/apps/1test/src/preload.ts index 286a5ac623..1f578df3ea 100644 --- a/apps/1test/src/preload.ts +++ b/apps/1test/src/preload.ts @@ -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) => ipcRenderer.send(`${name}:on`, message) }