mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
clean up client side + config.json
This commit is contained in:
17
public/src/app.js
Normal file
17
public/src/app.js
Normal file
@@ -0,0 +1,17 @@
|
||||
var socket,
|
||||
config;
|
||||
|
||||
(function() {
|
||||
|
||||
$.get('config.json?v=' + new Date().getTime(), function(data) {
|
||||
config = data;
|
||||
socket = io.connect('http://' + config.socket.address + config.socket.port? ':' + config.socket.port : '');
|
||||
|
||||
socket.on('event:connect', function(data) {
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
}());
|
||||
Reference in New Issue
Block a user