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({