Update flipstreamviewer.py

fix auto hide of previewbox
This commit is contained in:
sakura1bgx
2025-05-25 05:09:39 +09:00
committed by GitHub
parent b33c90dfee
commit ad47db33ff
+5 -5
View File
@@ -830,12 +830,12 @@ async function refreshView() {
document.getElementById("messageBox").textContent = atob_utf8(data.message) || "";
if (document.body.style.backgroundImage != "none") {
document.body.style.backgroundImage = `url('/flipstreamviewer/stream?mtime=${data.stream_mtime || 0}')`;
document.querySelectorAll('.FlipStreamPreviewBox').forEach(async x => {
if (x.src != "") {
x.src = `/flipstreamviewer/preview?label=${x.name}&mtime=${data.preview_mtime[x.id] || 0}`;
}
});
}
document.querySelectorAll('.FlipStreamPreviewBox').forEach(async x => {
if (x.src != "") {
x.src = `/flipstreamviewer/preview?label=${x.name}&mtime=${data.preview_mtime[x.id] || 0}`;
}
});
if (data.update_and_reload) {
updateParam(true);
}