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