| 
									
										
										
										
											2024-11-01 08:04:37 -07:00
										 |  |  | const { app, BrowserWindow } = require('electron') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function createWindow () { | 
					
						
							|  |  |  |   const win = new BrowserWindow({ | 
					
						
							|  |  |  |     // remove the default titlebar
 | 
					
						
							|  |  |  |     titleBarStyle: 'hidden', | 
					
						
							| 
									
										
										
										
											2025-02-27 21:31:21 +08:00
										 |  |  |     // expose window controls in Windows/Linux
 | 
					
						
							| 
									
										
										
										
											2024-11-01 08:04:37 -07:00
										 |  |  |     ...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {}) | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   win.loadFile('index.html') | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | app.whenReady().then(() => { | 
					
						
							|  |  |  |   createWindow() | 
					
						
							|  |  |  | }) |