diff options
author | JJ | 2024-07-19 00:43:23 +0000 |
---|---|---|
committer | JJ | 2024-07-19 00:43:23 +0000 |
commit | 74f67282026950769c5d3a968f2dd84a8e62b74d (patch) | |
tree | f4c0cbbee2ad1a56477d1fc2b6b6e996cb9fc344 /frontend | |
parent | 8f5e7075ec298d4d66c6b044d0ac1fd01a626d35 (diff) |
possibly fix wasm stuff
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/notifications.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 = () => { |