From e8d69214b77b94b9828dc43dffff9f6c0078babc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=81=B6?= <2424880409@qq.com> Date: Mon, 15 May 2023 09:47:33 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E7=B3=BB=E7=BB=9F=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E9=92=A9=E5=AD=90=E5=87=BD=E6=95=B0=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=20api=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()) {