main: merge --address and --gui-only switches, update docs
This commit is contained in:
parent
2639cfd930
commit
d9e7a0cea0
5 changed files with 5 additions and 9 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue