From eaca73135096a6fb5dc06f5065084673750aadc1 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 19 Mar 2025 15:21:31 +0100 Subject: [PATCH] Aktualisiere die Socket-Verbindungs-URL, um das Protokoll dynamisch zu verwenden --- frontend/dashboard/lobby/scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/dashboard/lobby/scripts/index.js b/frontend/dashboard/lobby/scripts/index.js index 3f80909..caf519f 100644 --- a/frontend/dashboard/lobby/scripts/index.js +++ b/frontend/dashboard/lobby/scripts/index.js @@ -3,7 +3,7 @@ import LobbyHandler from "./Handler/LobbyHandler.js"; class ServerConnectionManager { constructor() { /**@type {import("../../../../backend/node_modules/socket.io-client".Socket} für Autocompletions VSC*/ - this.socket = io(`http://${window.location.hostname}:${window.location.port}`); + this.socket = io(`${window.location.protocol}//${window.location.hostname}:${window.location.port}`); this.lobbyContainer = document.getElementById("mainDiv"); this.createBtn = document.getElementById("createBtn");