| 
									
										
										
										
											2023-08-28 13:23:10 +02:00
										 |  |  | const { app, BrowserWindow } = require('electron/main') | 
					
						
							| 
									
										
										
										
											2020-11-30 09:48:39 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | function createWindow () { | 
					
						
							|  |  |  |   const win = new BrowserWindow({ | 
					
						
							|  |  |  |     width: 800, | 
					
						
							| 
									
										
										
										
											2021-06-06 21:02:20 -07:00
										 |  |  |     height: 600 | 
					
						
							| 
									
										
										
										
											2020-11-30 09:48:39 +02:00
										 |  |  |   }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   win.loadFile('index.html') | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | app.whenReady().then(createWindow) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | app.on('window-all-closed', () => { | 
					
						
							|  |  |  |   if (process.platform !== 'darwin') { | 
					
						
							|  |  |  |     app.quit() | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | app.on('activate', () => { | 
					
						
							|  |  |  |   if (BrowserWindow.getAllWindows().length === 0) { | 
					
						
							|  |  |  |     createWindow() | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | }) |