diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8498d64..447549a 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,8 +4,9 @@
-
-
+
+
+
@@ -151,7 +152,6 @@
-
@@ -176,7 +176,8 @@
-
+
+
true
diff --git a/web/src/stores/notifications.ts b/web/src/stores/notifications.ts
index 784f582..0a5ffa4 100755
--- a/web/src/stores/notifications.ts
+++ b/web/src/stores/notifications.ts
@@ -39,7 +39,8 @@ export const useNotifications = defineStore("notifications", () => {
async function connect() {
if (!(checkLoggedIn())) return
- const uri = `ws://${window.location.host}/api/ws`
+ const protocol = location.protocol.replace("http", "ws")
+ const uri = `${protocol}//${window.location.host}/api/ws`
socket = new WebSocket(uri + `?tk=${getAtk() as string}`)