aboutsummaryrefslogtreecommitdiff
path: root/ui/client-scripts/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-19 00:34:03 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-19 00:34:03 +0100
commit38c3903265d3f47206e13232606d864b05ad00cc (patch)
treefe64d4bec58e31d6b34b7158075ca312bf2008e1 /ui/client-scripts/src
parent848d4adc1a6095e92b67d2fe7211c303924e5c04 (diff)
downloadjellything-38c3903265d3f47206e13232606d864b05ad00cc.tar
jellything-38c3903265d3f47206e13232606d864b05ad00cc.tar.bz2
jellything-38c3903265d3f47206e13232606d864b05ad00cc.tar.zst
readd player page; ident naming
Diffstat (limited to 'ui/client-scripts/src')
-rw-r--r--ui/client-scripts/src/player/mod.ts4
1 files changed, 2 insertions, 2 deletions
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))
}