mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Revert changes to dist files
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user