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); }