From 259626afbcfe5b706cb1fc0f4645fdc47260872b Mon Sep 17 00:00:00 2001 From: Erik Thiele Date: Mon, 22 Jun 2026 16:55:44 +0200 Subject: [PATCH] Fehler bei "Stay on first slide" --- templates/player.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/player.html b/templates/player.html index 8bc8e03..17d0c26 100755 --- a/templates/player.html +++ b/templates/player.html @@ -479,12 +479,12 @@ function playNext() { iframe.style.width = `100vw`; iframe.style.height = `100vh`; iframe.style.transform = `translate(-50%, -50%)`; - playerTimer = setTimeout(playNext, interval); + if (!stayOnFirst) playerTimer = setTimeout(playNext, interval); } else { // Bild (jpg/png) img.style.display = "block"; img.src = src; - playerTimer = setTimeout(playNext, interval); + if (!stayOnFirst) playerTimer = setTimeout(playNext, interval); } } @@ -496,7 +496,7 @@ async function checkForUpdates() { const res = await fetch(`/playlist/${site}/${screen}/hash`, { cache: "no-store" }); const hash = await res.text(); if (lastHash && lastHash !== hash) { - location.reload(); + location.reload(true); } lastHash = hash; } catch (e) {