summaryrefslogtreecommitdiff
path: root/src/static/js/timeslider.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/timeslider.js')
-rw-r--r--src/static/js/timeslider.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js
index 438b1695..6c91423b 100644
--- a/src/static/js/timeslider.js
+++ b/src/static/js/timeslider.js
@@ -60,8 +60,8 @@ function init() {
//create the url
var url = loc.protocol + "//" + loc.hostname + ":" + port + "/";
//find out in which subfolder we are
- var resource = loc.pathname.substr(1,loc.pathname.indexOf("/p/")) + "socket.io";
-
+ var resource = exports.baseURL + 'socket.io';
+
//build up the socket io connection
socket = io.connect(url, {resource: resource});
@@ -153,4 +153,5 @@ function handleClientVars(message)
}
}
+exports.baseURL = '';
exports.init = init;