From b41bda569d96a516cf1374509e51ff2ea03070ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Tue, 18 Apr 2017 23:34:14 -0300 Subject: [PATCH] Change method for check if pass dev parameter --- js/electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/electron.js b/js/electron.js index 1f16092b..fbbdba94 100644 --- a/js/electron.js +++ b/js/electron.js @@ -51,7 +51,7 @@ function createWindow() { mainWindow.loadURL("http://localhost:" + config.port); // Open the DevTools if run with "npm start dev" - if(process.argv[2] == "dev") { + if (process.argv.includes("dev")) { mainWindow.webContents.openDevTools(); }