aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/notifications.js2
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 = () => {