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:
parent
449719b2fc
commit
6168d09218
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue