fix port for WS link; use correct HF build arg

This commit is contained in:
slavik.fursov
2025-06-30 08:15:51 -07:00
parent f668570292
commit 5b8ad94dde
2 changed files with 3 additions and 3 deletions

View File

@@ -321,7 +321,7 @@
const timerElement = document.querySelector(".timer");
const host = window.location.hostname || "localhost";
const port = window.location.port || "8000";
const port = window.location.port;
const protocol = window.location.protocol === "https:" ? "wss" : "ws";
const defaultWebSocketUrl = `${protocol}://${host}:${port}/asr`;
websocketInput.value = defaultWebSocketUrl;