From 42e40e62d34c2557d1c53848c8beb7064fa19b4e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 11 Jun 2013 13:59:30 -0400 Subject: [PATCH] hotfixing bug where client-side config was incorrectly set up if port isn't being used --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 66b2c5116a..7d4f854087 100644 --- a/app.js +++ b/app.js @@ -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)) }); });