Commit 6168d092 authored by uservar's avatar uservar Committed by AUTOMATIC1111

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