Revert changes to dist files

This commit is contained in:
Pablo Hellmann
2026-06-18 20:29:00 +02:00
parent 642a2be76f
commit bac713b45e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -10962,7 +10962,7 @@ function setRefreshInterval() {
refreshInterval = window.opts.live_preview_refresh_period || 500;
log("refreshInterval", document.visibilityState, refreshInterval);
document.addEventListener("visibilitychange", () => {
if (window.opts.live_preview_require_focus !== false && document.hidden) refreshInterval = Math.max(2500, window.opts.live_preview_refresh_period || 1e3);
if (document.hidden) refreshInterval = Math.max(2500, window.opts.live_preview_refresh_period || 1e3);
else refreshInterval = window.opts.live_preview_refresh_period || 1e3;
});
}
@@ -11078,7 +11078,7 @@ function requestProgress(id_task = "undefined", progressEl = null, galleryEl = n
};
const startLivePreview = (taskId, id_live_preview) => {
if (window.opts.live_preview_refresh_period === 0) return;
const request_id = window.opts.live_preview_require_focus !== false && document.hidden ? -1 : id_live_preview;
const request_id = document.hidden ? -1 : id_live_preview;
const onProgressHandler = (res) => {
if (res?.debug) debug("progress:", { start: dateStart, id: request_id, res });
lastState = res;
+2 -2
View File
File diff suppressed because one or more lines are too long