mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	makes the dialog box error not display
This commit is contained in:
		| @@ -149,8 +149,7 @@ function startHttpServer() { | |||||||
|                 // clicking the shortcut, the software icon, or the taskbar icon, or when creating a new window,  |                 // 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. |                 // should simply focus on the existing window or open a new one, without displaying an error message. | ||||||
|                 if ("code" in error && error.code == 'EADDRINUSE') { |                 if ("code" in error && error.code == 'EADDRINUSE') { | ||||||
|                     const isNewWindow = process.argv.includes('--new-window'); |                     if (process.argv.includes('--new-window') || !app.requestSingleInstanceLock()) { | ||||||
|                     if (isNewWindow || !app.requestSingleInstanceLock()) { |  | ||||||
|                         console.error(message); |                         console.error(message); | ||||||
|                         process.exit(1); |                         process.exit(1); | ||||||
|                     } |                     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user