mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 17:07:15 +00:00
don't auto enable devtools
This commit is contained in:
parent
8a7e7c4eb5
commit
7a24c9aa3a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue