mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	electron: Fix Common.js import
This commit is contained in:
		
							parent
							
								
									bd6ef06732
								
							
						
					
					
						commit
						989462c1b8
					
				| @ -9,7 +9,7 @@ import windowService from "./src/services/window.js"; | |||||||
| import tray from "./src/services/tray.js"; | import tray from "./src/services/tray.js"; | ||||||
| 
 | 
 | ||||||
| // Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
 | // Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
 | ||||||
| if (require('electron-squirrel-startup')) { | if (await import('electron-squirrel-startup')) { | ||||||
|   process.exit(0); |   process.exit(0); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -12,6 +12,7 @@ | |||||||
|         "@braintree/sanitize-url": "^7.1.0", |         "@braintree/sanitize-url": "^7.1.0", | ||||||
|         "@electron/remote": "2.1.2", |         "@electron/remote": "2.1.2", | ||||||
|         "@excalidraw/excalidraw": "^0.17.6", |         "@excalidraw/excalidraw": "^0.17.6", | ||||||
|  |         "@types/electron-squirrel-startup": "^1.0.2", | ||||||
|         "archiver": "^7.0.1", |         "archiver": "^7.0.1", | ||||||
|         "async-mutex": "^0.5.0", |         "async-mutex": "^0.5.0", | ||||||
|         "axios": "^1.7.2", |         "axios": "^1.7.2", | ||||||
| @ -2245,6 +2246,11 @@ | |||||||
|       "integrity": "sha512-nv+GSx77ZtXiJzwKdsASqi+YQ5Z7vwHsTP0JY2SiQgjGckkBRKZnk8nIM+7oUZ1VCtuTz0+By4qVR7fqzp/Dfg==", |       "integrity": "sha512-nv+GSx77ZtXiJzwKdsASqi+YQ5Z7vwHsTP0JY2SiQgjGckkBRKZnk8nIM+7oUZ1VCtuTz0+By4qVR7fqzp/Dfg==", | ||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|  |     "node_modules/@types/electron-squirrel-startup": { | ||||||
|  |       "version": "1.0.2", | ||||||
|  |       "resolved": "https://registry.npmjs.org/@types/electron-squirrel-startup/-/electron-squirrel-startup-1.0.2.tgz", | ||||||
|  |       "integrity": "sha512-AzxnvBzNh8K/0SmxMmZtpJf1/IWoGXLP+pQDuUaVkPyotI8ryvAtBSqgxR/qOSvxWHYWrxkeNsJ+Ca5xOuUxJQ==" | ||||||
|  |     }, | ||||||
|     "node_modules/@types/escape-html": { |     "node_modules/@types/escape-html": { | ||||||
|       "version": "1.0.4", |       "version": "1.0.4", | ||||||
|       "resolved": "https://registry.npmjs.org/@types/escape-html/-/escape-html-1.0.4.tgz", |       "resolved": "https://registry.npmjs.org/@types/escape-html/-/escape-html-1.0.4.tgz", | ||||||
|  | |||||||
| @ -49,6 +49,7 @@ | |||||||
|     "@braintree/sanitize-url": "^7.1.0", |     "@braintree/sanitize-url": "^7.1.0", | ||||||
|     "@electron/remote": "2.1.2", |     "@electron/remote": "2.1.2", | ||||||
|     "@excalidraw/excalidraw": "^0.17.6", |     "@excalidraw/excalidraw": "^0.17.6", | ||||||
|  |     "@types/electron-squirrel-startup": "^1.0.2", | ||||||
|     "archiver": "^7.0.1", |     "archiver": "^7.0.1", | ||||||
|     "async-mutex": "^0.5.0", |     "async-mutex": "^0.5.0", | ||||||
|     "axios": "^1.7.2", |     "axios": "^1.7.2", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran