diff --git a/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js b/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js index c780aa6a..0b101d1e 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js @@ -2,7 +2,7 @@ let ws = null; export function ws_proto() { - if (window.location.protocl === 'https') { + if (window.location.protocol.startsWith('https')) { return "wss://"; } else { return "ws://";