From 8bb29a44789d84c3d51a5feeed3f66bb4e28870c Mon Sep 17 00:00:00 2001 From: JJ Date: Thu, 18 Jul 2024 18:30:10 -0700 Subject: fix websocket stuff --- frontend/src/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src') 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 = () => { -- cgit v1.2.3-70-g09d2