From 74f67282026950769c5d3a968f2dd84a8e62b74d Mon Sep 17 00:00:00 2001 From: JJ Date: Thu, 18 Jul 2024 17:43:23 -0700 Subject: possibly fix wasm stuff --- frontend/src/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/src/notifications.js b/frontend/src/notifications.js index 3c83b87..0a82c44 100644 --- a/frontend/src/notifications.js +++ b/frontend/src/notifications.js @@ -22,7 +22,7 @@ class Notifications { constructor() { const location = document.location; - this.wsUrl = `ws://${location.hostname}${location.port ? ":" + location.port : ""}/ws`; + this.wsUrl = `${location.protocol === "https:"? "wss" : "ws"}://${location.hostname}${location.port ? ":" + location.port : ""}/ws`; } createWebsocket = () => { -- cgit v1.2.3-70-g09d2