diff --git a/src/main/index.ts b/src/main/index.ts index 806aab6..188b1a7 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -62,7 +62,10 @@ class App { createTray(this.windowCreator.getWindow()); registerHotKey(this.windowCreator.getWindow()); this.systemPlugins.triggerReadyHooks( - Object.assign(electron, { mainWindow: this.windowCreator.getWindow() }) + Object.assign(electron, { + mainWindow: this.windowCreator.getWindow(), + API, + }) ); }; if (!app.isReady()) {