From 8ebd0e517fe3501b555358c1f676ee6aad535804 Mon Sep 17 00:00:00 2001 From: Omar-Alodwan <31454776+Omar-Alodwan@users.noreply.github.com> Date: Mon, 12 Oct 2026 18:29:35 +0200 Subject: [PATCH] Avoid Element.replaceChildren for older web engines Jellyfin Media Player 1.12 ships a web engine older than Chrome 86, so dotsContainer.replaceChildren() threw and the bar never loaded. Clear with textContent and append instead. --- slideshowpure.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/slideshowpure.js b/slideshowpure.js index 532e749..39611cb 100644 --- a/slideshowpure.js +++ b/slideshowpure.js @@ -2907,7 +2907,10 @@ const SlideCreator = { ); const host = document.getElementById(`yt-player-${itemId}`); - host?.replaceChildren(video); + if (host) { + host.textContent = ""; + host.appendChild(video); + } STATE.slideshow.players[itemId] = createLocalPlayer(video); STATE.slideshow.slideVideoIds[itemId] = `local:${itemId}`; } else { @@ -2979,7 +2982,7 @@ const SlideshowManager = { container.appendChild(dotsContainer); } - dotsContainer.replaceChildren(); + dotsContainer.textContent = ""; const count = Math.min(STATE.slideshow.totalItems, CONFIG.maxDots);