Skip to content

Commit

Permalink
Open dev tools with --devtools cmd line flag
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Dec 3, 2018
1 parent b089a6d commit 84fc3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const createWindow = () => {
mainWindow.loadURL(`file://${__dirname}/index.html`);

// Open the DevTools.
if (isDevMode) {
if (isDevMode || process.argv.includes('--devtools')) {
mainWindow.webContents.openDevTools();
}

Expand Down

0 comments on commit 84fc3a0

Please sign in to comment.