dev: enable devtools shortcut in launcher for devs (if npm start is used)
This commit is contained in:
parent
7c437e07f4
commit
491d20b9d2
1 changed files with 4 additions and 2 deletions
|
|
@ -1,4 +1,6 @@
|
|||
var settings = require('./settings')
|
||||
|
||||
var dev = process.argv[1] === '.',
|
||||
settings = require('./settings')
|
||||
|
||||
var serverStarted
|
||||
|
||||
|
|
@ -68,7 +70,7 @@ if (settings.cli) {
|
|||
launcher
|
||||
|
||||
app.on('ready',function(){
|
||||
launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:(100 + 8*3 + 29 * Object.keys(settings.options).filter(x => settings.options[x].launcher !== false).length), node:true, color:'#253040'})
|
||||
launcher = require('./electron-window')({address:address, shortcuts:dev, width:680, height:(100 + 8*3 + 29 * Object.keys(settings.options).filter(x => settings.options[x].launcher !== false).length), node:true, color:'#253040'})
|
||||
})
|
||||
|
||||
if (process.log) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue