From 38c3903265d3f47206e13232606d864b05ad00cc Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 19 Feb 2026 00:34:03 +0100 Subject: readd player page; ident naming --- ui/client-scripts/src/player/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/client-scripts/src/player') diff --git a/ui/client-scripts/src/player/mod.ts b/ui/client-scripts/src/player/mod.ts index dc9e51d..6f09ede 100644 --- a/ui/client-scripts/src/player/mod.ts +++ b/ui/client-scripts/src/player/mod.ts @@ -14,12 +14,12 @@ import { Chapter, NodePublic, NodeUserData } from "./types_node.ts"; import { FormatInfo, TrackKind } from "./types_stream.ts"; globalThis.addEventListener("DOMContentLoaded", () => { - if (document.body.classList.contains("player")) { + if (document.getElementById("player")) { if (globalThis.location.search.search("nojsp") != -1) return if (!globalThis.MediaSource) return alert("Media Source Extension API required") const node_id = globalThis.location.pathname.split("/")[2]; document.getElementById("player")?.remove(); - document.getElementsByClassName("playerconf").item(0)?.remove() + // document.getElementsByClassName("playerconf").item(0)?.remove() globalThis.dispatchEvent(new Event("navigationrequiresreload")) document.getElementById("main")!.prepend(initialize_player(node_id)) } -- cgit v1.3