Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 989462c

Browse files
committed
electron: Fix Common.js import
1 parent bd6ef06 commit 989462c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

electron.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import windowService from "./src/services/window.js";
99
import tray from "./src/services/tray.js";
1010

1111
// Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
12-
if (require('electron-squirrel-startup')) {
12+
if (await import('electron-squirrel-startup')) {
1313
process.exit(0);
1414
}
1515

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@braintree/sanitize-url": "^7.1.0",
5050
"@electron/remote": "2.1.2",
5151
"@excalidraw/excalidraw": "^0.17.6",
52+
"@types/electron-squirrel-startup": "^1.0.2",
5253
"archiver": "^7.0.1",
5354
"async-mutex": "^0.5.0",
5455
"axios": "^1.7.2",

0 commit comments

Comments
 (0)