Skip to content

Node.js based forum software built for the modern web

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

Julian Lam42e40e62d34c
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))
});
});