aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-08 10:02:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-08 10:02:42 +1300
commit511f22dd7ab31e5da8741264dbf19a9fe8b05b63 (patch)
treed32f9fd6155e5d718bd935c3cb7adaffc748be5b /web
parentb89c936b9ffb0bb3eda36830dba7a6870bbc86c5 (diff)
downloadtrackermap-server-511f22dd7ab31e5da8741264dbf19a9fe8b05b63.tar.gz
trackermap-server-511f22dd7ab31e5da8741264dbf19a9fe8b05b63.tar.bz2
trackermap-server-511f22dd7ab31e5da8741264dbf19a9fe8b05b63.zip
Fix issue in WebSocket url construction
Diffstat (limited to 'web')
-rw-r--r--web/app/controller/Root.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 23ca94972..a1026d3c5 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -86,7 +86,7 @@ Ext.define('Traccar.controller.Root', {
asyncUpdate: function (first) {
var protocol, socket, self = this;
protocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
- socket = new WebSocket(protocol + window.location.host + '/api/socket');
+ socket = new WebSocket(protocol + '//' + window.location.host + '/api/socket');
socket.onclose = function (event) {
self.asyncUpdate(false);