Update to timeslider to include base path for easier proxying

This commit is contained in:
Cetra Free 2015-01-19 14:25:06 +10:30
parent 73d6030762
commit 3649118194
1 changed files with 4 additions and 2 deletions

View File

@ -60,10 +60,12 @@ function init() {
var url = loc.protocol + "//" + loc.hostname + ":" + port + "/";
//find out in which subfolder we are
var resource = exports.baseURL.substring(1) + 'socket.io';
console.log(exports.baseURL);
//build up the socket io connection
socket = io.connect(url, {resource: resource});
socket = io.connect(url, {path: exports.baseURL + 'socket.io', resource: resource});
//send the ready message once we're connected
socket.on('connect', function()
{