From f5bafd11172c25fff9e6dadf4779a5590c7e868c Mon Sep 17 00:00:00 2001 From: Matteo Rosati Date: Tue, 20 Jan 2026 12:12:59 +0100 Subject: [PATCH] fix host --- static/js/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 1f65f10..6142231 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1,8 +1,7 @@ (($) => { const isSecure = location.protocol === "https:"; - const port = location.port ? `:${location.port}` : ""; var ws = new WebSocket( - `ws${isSecure ? "s" : ""}://${location.host}${port}/ws`, + `ws${isSecure ? "s" : ""}://${location.host}/ws`, ); const input = $("#message"); const messages = $("#messages");