Commit 49147b20 authored by Fabian Gruber's avatar Fabian Gruber
Browse files

make websocket connection working with SSL

parent a49ac412
......@@ -65,7 +65,7 @@
*/
var establishWebsocketConnection = function() {
var websocketUrl = 'ws://' + window.location.hostname + ':' + window.location.port;
var websocketUrl = (location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.hostname + ':' + window.location.port;
if (websocket.connection === null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment