mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 22:00:33 +08:00
electron: Fix not starting due to squirrel
This commit is contained in:
parent
6006d01f8b
commit
ae80a748af
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import windowService from "./src/services/window.js";
|
||||||
import tray from "./src/services/tray.js";
|
import tray from "./src/services/tray.js";
|
||||||
|
|
||||||
// Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
|
// 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);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue