electron: Fix not starting due to squirrel

This commit is contained in:
Elian Doran 2024-07-24 20:57:32 +03:00
parent 6006d01f8b
commit ae80a748af
No known key found for this signature in database

View File

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