Fehler bei "Stay on first slide"
This commit is contained in:
@@ -479,12 +479,12 @@ function playNext() {
|
|||||||
iframe.style.width = `100vw`;
|
iframe.style.width = `100vw`;
|
||||||
iframe.style.height = `100vh`;
|
iframe.style.height = `100vh`;
|
||||||
iframe.style.transform = `translate(-50%, -50%)`;
|
iframe.style.transform = `translate(-50%, -50%)`;
|
||||||
playerTimer = setTimeout(playNext, interval);
|
if (!stayOnFirst) playerTimer = setTimeout(playNext, interval);
|
||||||
} else {
|
} else {
|
||||||
// Bild (jpg/png)
|
// Bild (jpg/png)
|
||||||
img.style.display = "block";
|
img.style.display = "block";
|
||||||
img.src = src;
|
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 res = await fetch(`/playlist/${site}/${screen}/hash`, { cache: "no-store" });
|
||||||
const hash = await res.text();
|
const hash = await res.text();
|
||||||
if (lastHash && lastHash !== hash) {
|
if (lastHash && lastHash !== hash) {
|
||||||
location.reload();
|
location.reload(true);
|
||||||
}
|
}
|
||||||
lastHash = hash;
|
lastHash = hash;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user