electron: Display TypeScript stack traces

This commit is contained in:
Elian Doran
2024-07-27 16:40:59 +03:00
parent 3bc83e19fa
commit ac4f902bb9
3 changed files with 16 additions and 2 deletions

View File

@@ -8,6 +8,9 @@ import appIconService from "./src/services/app_icon.js";
import windowService from "./src/services/window.js";
import tray from "./src/services/tray.js";
import sourceMapSupport from "source-map-support";
sourceMapSupport.install();
// Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
if ((await import('electron-squirrel-startup')).default) {
process.exit(0);