package-node: remove settings hack and pass settings in electron globals

This commit is contained in:
bordun 2018-10-27 15:32:21 +02:00
parent 0ca44553d0
commit 1b2da1750a
3 changed files with 4 additions and 8 deletions

View file

@ -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'})
})