hotfixing bug where client-side config was incorrectly set up if port isn't being used

This commit is contained in:
Julian Lam
2013-06-11 13:59:30 -04:00
parent 740cf13e8d
commit 42e40e62d3

2
app.js
View File

@@ -157,7 +157,7 @@ fs.readFile(path.join(__dirname, 'config.json'), function(err, data) {
address: base_url,
port: port
},
api_url: base_url + ':' + port + '/api/'
api_url: base_url + (use_port ? ':' + port : '') + '/api/'
}, null, 4))
});
});