electron: Fix Common.js import

This commit is contained in:
Elian Doran
2024-07-24 00:00:41 +03:00
parent bd6ef06732
commit 989462c1b8
3 changed files with 8 additions and 1 deletions

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 (require('electron-squirrel-startup')) {
if (await import('electron-squirrel-startup')) {
process.exit(0);
}