From c08fce99a1c957e4d43dcceb3fc232dcbdaa6e50 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Mon, 6 Jul 2026 22:56:17 +0200 Subject: [PATCH] url setting --- modules/web/listen.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/web/listen.html b/modules/web/listen.html index b1fb26c..27082b8 100644 --- a/modules/web/listen.html +++ b/modules/web/listen.html @@ -285,6 +285,18 @@ function finishSleep() { } sleepBaseVolume = null; } + +function isTnet() { + return window.location.protocol === "file:" || window.location.hostname.includes("tnet"); +} + +function initTnetUrl() { + if (isTnet()) { + document.getElementById("whep-url-input").value = "https://webrtc.terminal.tnet/radio/whep"; + } +} + +initTnetUrl(); \ No newline at end of file