Re-add channels page

This commit is contained in:
2026-01-08 15:42:41 +01:00
parent f56016cf1c
commit b0a7c0dd7f
3 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
const channelNameInput = document.getElementById("channel-search");
function onOpenOverlayButtonClick(event) {
event.preventDefault();
const channelName = channelNameInput.value.trim().toLowerCase();
if (channelName) {
const overlayUrl = `/view/${channelName}/broadcast`;
window.location.href = overlayUrl;
}
}

View File

@@ -1,5 +1,5 @@
function detectPlatform() {
const navigatorPlatform = (navigator.userAgentData?.platform || navigator.platform || "").toLowerCase();
const navigatorPlatform = (navigator.userAgentData?.platform || "").toLowerCase();
const userAgent = (navigator.userAgent || "").toLowerCase();
const platformString = `${navigatorPlatform} ${userAgent}`;
@@ -12,6 +12,7 @@ function detectPlatform() {
if (platformString.includes("linux")) {
return "linux";
}
console.warn(`Unable to detect platform from string: ${platformString}`);
return null;
}