diff options
author | JJ | 2024-07-19 01:30:10 +0000 |
---|---|---|
committer | JJ | 2024-07-19 01:30:10 +0000 |
commit | 8bb29a44789d84c3d51a5feeed3f66bb4e28870c (patch) | |
tree | 607ac3cb4d039dfe74902a3d5e8dab43f409606a /frontend/src | |
parent | 64fc715866d1647c7fe157fe49fee4276b7d9f4c (diff) |
fix websocket stuff
Diffstat (limited to 'frontend/src')
-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 0a82c44..6cbc16c 100644 --- a/frontend/src/notifications.js +++ b/frontend/src/notifications.js @@ -22,7 +22,7 @@ class Notifications { constructor() { const location = document.location; - this.wsUrl = `${location.protocol === "https:"? "wss" : "ws"}://${location.hostname}${location.port ? ":" + location.port : ""}/ws`; + this.wsUrl = `wss://${location.hostname}${location.port ? ":" + location.port : ""}/ws`; } createWebsocket = () => { |