Commit 04cfcf91 authored by AUTOMATIC1111's avatar AUTOMATIC1111

fix endless progress requests

parent 3ec5ce94
......@@ -148,9 +148,11 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
var funLivePreview = function(id_task, id_live_preview) {
request("./internal/progress", {id_task: id_task, id_live_preview: id_live_preview}, function(res) {
if (res.live_preview && gallery) {
if (!divProgress) {
return;
}
if (res.live_preview && gallery) {
var img = new Image();
img.onload = function() {
if (!livePreview) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment