Skip to content

Commit

Permalink
Merge pull request #862 from roramirez/dev-args
Browse files Browse the repository at this point in the history
Change method for check if pass dev parameter
  • Loading branch information
MichMich authored Apr 22, 2017
2 parents 30aa8d4 + b41bda5 commit b055344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b055344

Please sign in to comment.