We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49ac41 commit 49147b2Copy full SHA for 49147b2
js/linuxDash.js
@@ -65,7 +65,7 @@
65
*/
66
var establishWebsocketConnection = function() {
67
68
- var websocketUrl = 'ws://' + window.location.hostname + ':' + window.location.port;
+ var websocketUrl = (location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.hostname + ':' + window.location.port;
69
70
if (websocket.connection === null) {
71
0 commit comments