Skip to content

Commit

Permalink
don't auto enable devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jun 29, 2017
1 parent 8a7e7c4 commit 7a24c9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
if (process.platform == 'win32' && require('electron-squirrel-startup')) process.exit(0)

const electron = require('electron')
require('electron-debug')({enabled: true, showDevTools: (process.argv.indexOf('--debug') != -1) ? 'undocked' : false})
if (process.argv.indexOf('--debug') !== -1) {
require('electron-debug')({enabled: true, showDevTools: 'undocked'})
}


let app = electron.app
Expand Down

0 comments on commit 7a24c9a

Please sign in to comment.