Added dev parameter

This commit is contained in:
Alex Yakhnin 2016-07-30 09:42:31 -04:00
parent c4f9388668
commit b98237fa44
3 changed files with 7 additions and 2 deletions

View file

@ -27,8 +27,10 @@ function createWindow() {
//mainWindow.loadURL('file://' + __dirname + '../../index.html');
mainWindow.loadURL("http://localhost:" + config.port);
// Open the DevTools.
//mainWindow.webContents.openDevTools();
// Open the DevTools if run with "npm start dev"
if(process.argv[2] == "dev"){
mainWindow.webContents.openDevTools();
}
// Emitted when the window is closed.
mainWindow.on("closed", function() {