const electron=require("electron"),app=electron.app,BrowserWindow=electron.BrowserWindow,path=require("path"),url=require("url");let mainWindow;function createWindow(){mainWindow=new BrowserWindow({width:1200,height:800}),process.env.ELECTRON_START_URL||url.format({pathname:path.join(__dirname,"../www/index.html"),protocol:"file:",slashes:!0}),mainWindow.loadURL("http://localhost:4200"),mainWindow.webContents.openDevTools(),mainWindow.on("closed",(function(){mainWindow=null}))}app.on("ready",createWindow),app.on("window-all-closed",(function(){"darwin"!==process.platform&&app.quit()})),app.on("activate",(function(){null===mainWindow&&createWindow()}));