From e902a8e46c4547c8b0fbee0f26c84991124e75aa Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 15 Nov 2024 16:25:05 -0500 Subject: [PATCH] remove event parameter from handler function params --- jslib/electron/src/tray.main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jslib/electron/src/tray.main.ts b/jslib/electron/src/tray.main.ts index ca2e53ddd..2854bc5b8 100644 --- a/jslib/electron/src/tray.main.ts +++ b/jslib/electron/src/tray.main.ts @@ -60,9 +60,8 @@ export class TrayMain { } setupWindowListeners(win: BrowserWindow) { - win.on("minimize", async (e: Event) => { + win.on("minimize", async () => { if (await this.stateService.getEnableMinimizeToTray()) { - e.preventDefault(); this.hideToTray(); } });