don't auto enable devtools

This commit is contained in:
Eugene Pankov 2017-06-29 14:26:39 +02:00
parent 8a7e7c4eb5
commit 7a24c9aa3a

View file

@ -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