Prevent uploading previous output from javascript

As it is currently, txt2img and img2img send back the previous output args (txt2img_gallery, generation_info, html_info) whenever you generate a new image. This can lead to uploading a huge gallery of previously generated images, which leads to an unnecessary delay between submitting and beginning to generate.
This commit is contained in:
uservar 2022-09-16 19:07:14 +00:00 committed by AUTOMATIC1111
parent 449719b2fc
commit 6168d09218

View file

@ -177,7 +177,7 @@ function submit(){
window.setTimeout(requestProgress, 500) window.setTimeout(requestProgress, 500)
res = [] res = []
for(var i=0;i<arguments.length;i++){ for(var i=0;i<arguments.length - 3;i++){
res.push(arguments[i]) res.push(arguments[i])
} }
return res return res