From a7741ab62bc533bd5428fe50890abc1127a950ec Mon Sep 17 00:00:00 2001 From: Lucas BEE Date: Fri, 24 May 2019 09:52:59 +0000 Subject: [PATCH] Fix https in websocket connections --- frontend/js/components/websocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/js/components/websocket.js b/frontend/js/components/websocket.js index 3f70ee0..46950b9 100644 --- a/frontend/js/components/websocket.js +++ b/frontend/js/components/websocket.js @@ -49,7 +49,7 @@ const WsHandler = (props) => { stop(); } - const type = (location.protocol === "https") ? "wss" : "ws"; + const type = (location.protocol === "https:") ? "wss" : "ws"; const socket = new WebSocket(type + ":" + location.host + "/events") socket.onopen = () => { socket.send(JSON.stringify({