url setting

This commit is contained in:
2026-07-06 22:56:17 +02:00
parent 90d49ea3ac
commit c08fce99a1
+12
View File
@@ -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();
</script>
</body>
</html>