mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	entrypoint: add missing, currently required set_password entry point
TODO: I think this can actually be part of the setup entrypoint/view at some point
This commit is contained in:
		
							
								
								
									
										6
									
								
								src/public/app/set_password.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/public/app/set_password.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  | import "../stylesheets/bootstrap.scss"; | ||||||
|  |  | ||||||
|  | // @TriliumNextTODO: is this even needed anymore? | ||||||
|  | // @ts-ignore - module = undefined | ||||||
|  | // Required for correct loading of scripts in Electron | ||||||
|  | if (typeof module === 'object') {window.module = module; module = undefined;} | ||||||
| @@ -45,9 +45,7 @@ | |||||||
|     </div> |     </div> | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
| <script> | <script src="<%= appPath %>/set_password.js" crossorigin type="module"></script> | ||||||
|     // Required for correct loading of scripts in Electron |  | ||||||
|     if (typeof module === 'object') {window.module = module; module = undefined;} |  | ||||||
| </script> |  | ||||||
| </body> | </body> | ||||||
| </html> | </html> | ||||||
|   | |||||||
| @@ -12,7 +12,9 @@ const config: Configuration = { | |||||||
|         setup: "./src/public/app/setup.js", |         setup: "./src/public/app/setup.js", | ||||||
|         mobile: "./src/public/app/mobile.js", |         mobile: "./src/public/app/mobile.js", | ||||||
|         desktop: "./src/public/app/desktop.js", |         desktop: "./src/public/app/desktop.js", | ||||||
|         share: "./src/public/app/share.js" |         share: "./src/public/app/share.js", | ||||||
|  |         // TriliumNextTODO: integrate set_password into setup entry point/view | ||||||
|  |         set_password: "./src/public/app/set_password.js" | ||||||
|     }, |     }, | ||||||
|     output: { |     output: { | ||||||
|         publicPath: `${assetPath}/app-dist/`, |         publicPath: `${assetPath}/app-dist/`, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user