main: merge --address and --gui-only switches, update docs

This commit is contained in:
jean-emmanuel 2016-09-30 17:44:25 +02:00
parent 2639cfd930
commit d9e7a0cea0
5 changed files with 5 additions and 9 deletions

View file

@ -2,9 +2,8 @@ var path = require('path'),
shortcut = require('electron-localshortcut'),
{app, BrowserWindow, dialog} = require('electron'),
settings = require('./settings'),
address = settings.read('address')? 'http://' + settings.read('address') : settings.read('appAddresses')[0]
address = typeof settings.read('guiOnly')=='string'? 'http://' + settings.read('guiOnly') : settings.read('appAddresses')[0]
console.log(address)
dialog.showErrorBox = function(title,err) {
console.log(title + ': ' + err)
}