mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
fixes #356 - issue where accessing a NodeBB using a different machine name
from one that it was set up with causing template data to not load, as it was being accessed via absolute url, instead of relative url
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
var socket,
|
||||
config,
|
||||
app = {},
|
||||
API_URL = null;
|
||||
|
||||
app = {};
|
||||
|
||||
(function () {
|
||||
var showWelcomeMessage = false;
|
||||
@@ -12,8 +10,6 @@ var socket,
|
||||
$.ajax({
|
||||
url: RELATIVE_PATH + '/api/config',
|
||||
success: function (data) {
|
||||
API_URL = data.api_url;
|
||||
|
||||
config = data;
|
||||
if(socket) {
|
||||
socket.disconnect();
|
||||
|
||||
Reference in New Issue
Block a user