mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
got ajaxify working with threads, some cleanup, fixed anon posting, got rid of a few more global.sockets calls
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
var socket,
|
||||
config,
|
||||
app = {};
|
||||
app = {},
|
||||
|
||||
API_URL = null;
|
||||
|
||||
// todo: cleanup,etc
|
||||
(function() {
|
||||
@@ -8,6 +10,8 @@ var socket,
|
||||
$.ajax({
|
||||
url: '/config.json?v=' + new Date().getTime(),
|
||||
success: function(data) {
|
||||
API_URL = data.api_url;
|
||||
|
||||
config = data;
|
||||
socket = io.connect('http://' + config.socket.address + config.socket.port? ':' + config.socket.port : '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user