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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ var express = require('express')(),
|
|||
ioWildcard = require('socketio-wildcard')(),
|
||||
ipc = {},
|
||||
settings = require('./settings'),
|
||||
appAddresses = settings.appAddresses
|
||||
appAddresses = settings.read('appAddresses')
|
||||
|
||||
express.get('/', function(req, res){
|
||||
res.sendFile(path.resolve(__dirname + '/../browser/index.html'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue