From ae80a748afd271f6e78c7dc4d60cb410feb4e689 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 24 Jul 2024 20:57:32 +0300 Subject: [PATCH] electron: Fix not starting due to squirrel --- electron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron.ts b/electron.ts index 5c112d56d..b57b94901 100644 --- a/electron.ts +++ b/electron.ts @@ -9,7 +9,7 @@ import windowService from "./src/services/window.js"; import tray from "./src/services/tray.js"; // Prevent Trilium starting twice on first install and on uninstall for the Windows installer. -if (await import('electron-squirrel-startup')) { +if ((await import('electron-squirrel-startup')).default) { process.exit(0); }