From 05f5bad529caeaec5f5c8d6c63d89b9de162d659 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 1 Jun 2023 11:50:57 +0200 Subject: [PATCH] refactor --- apps/1test/src/global.d.ts | 1 - apps/1test/src/preload.ts | 1 - 2 files changed, 2 deletions(-) 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) }