package-node: remove settings hack and pass settings in electron globals
This commit is contained in:
parent
0ca44553d0
commit
1b2da1750a
3 changed files with 4 additions and 8 deletions
|
|
@ -96,6 +96,7 @@ if (settings.cli) {
|
|||
launcher
|
||||
|
||||
app.on('ready',function(){
|
||||
global.settings = settings
|
||||
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'})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue