Fehler bei "Stay on first slide"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user