fix(desktop): blank screen when starting (closes #2103)

This commit is contained in:
Elian Doran
2025-06-04 19:55:04 +03:00
parent 5fc8100c5d
commit 1818ae1f72
4 changed files with 40 additions and 30 deletions

View File

@@ -38,7 +38,8 @@ export function startElectron(callback: () => void): DeferredPromise<void> {
console.log("Electron is ready!");
// Start the server.
await import("@triliumnext/server/src/main.js");
const startTriliumServer = (await import("@triliumnext/server/src/www.js")).default;
await startTriliumServer();
// Create the main window.
await windowService.createMainWindow(electron.app);