Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
makes the dialog box error not display
SiriusXT4113574a43c3
diff --git a/src/www.ts b/src/www.tsindex 27f445615d..e8ddfc9fc9 100644--- a/src/www.ts+++ b/src/www.ts@@ -149,8 +149,7 @@ function startHttpServer() {// clicking the shortcut, the software icon, or the taskbar icon, or when creating a new window,// should simply focus on the existing window or open a new one, without displaying an error message.if ("code" in error && error.code == 'EADDRINUSE') {- const isNewWindow = process.argv.includes('--new-window');- if (isNewWindow || !app.requestSingleInstanceLock()) {+ if (process.argv.includes('--new-window') || !app.requestSingleInstanceLock()) {console.error(message);process.exit(1);}