main: fix default app address and wrong settings calls
This commit is contained in:
parent
18e6a3d4de
commit
fdf94213a2
3 changed files with 4 additions and 3 deletions
|
|
@ -2,8 +2,9 @@ var path = require('path'),
|
|||
shortcut = require('electron-localshortcut'),
|
||||
{app, BrowserWindow, dialog} = require('electron'),
|
||||
settings = require('./settings'),
|
||||
address = 'http://' + settings.read('address') || settings.read('appAddresses')[0]
|
||||
address = settings.read('address')? 'http://' + settings.read('address') : 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