commit 58c0e27bcc25e438a0bd37d880230ec8a8a71be1
parent 82d05c6fb3b52a9651cf53a9f43dc97edd969ac5
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 26 Mar 2016 12:05:43 +0100
Fix websocket
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/theme/index.html b/web/theme/index.html
@@ -168,7 +168,7 @@
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
- var ws = 'ws://'+location.hostname+(location.port ? ':'+location.port: '');
+ var ws = location.protocol+location.hostname+(location.port ? ':'+location.port: '');
var socket = io(ws);
$(document).off('click', '#restart').on('click', '#restart', function (e) {
console.log('restart fired');