mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	electron: Fix not starting due to squirrel
This commit is contained in:
		@@ -9,7 +9,7 @@ import windowService from "./src/services/window.js";
 | 
			
		||||
import tray from "./src/services/tray.js";
 | 
			
		||||
 | 
			
		||||
// Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
 | 
			
		||||
if (await import('electron-squirrel-startup')) {
 | 
			
		||||
if ((await import('electron-squirrel-startup')).default) {
 | 
			
		||||
  process.exit(0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user