diff --git a/js/electron.js b/js/electron.js index 1f16092b8e..fbbdba94fc 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(); }