aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruservar <63248296+uservar@users.noreply.github.com>2022-09-16 19:07:14 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-17 04:54:03 +0000
commit6168d09218073c369fd08b7208f93805f624ec05 (patch)
treeccf066e3364e6e94afb6e325160d86ad6241f6b1
parent449719b2fc9e8fd2e61f219e0979deb83c05177c (diff)
downloadstable-diffusion-webui-gfx803-6168d09218073c369fd08b7208f93805f624ec05.tar.gz
stable-diffusion-webui-gfx803-6168d09218073c369fd08b7208f93805f624ec05.tar.bz2
stable-diffusion-webui-gfx803-6168d09218073c369fd08b7208f93805f624ec05.zip
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.
-rw-r--r--script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/script.js b/script.js
index 0852e421..8b10b53d 100644
--- a/script.js
+++ b/script.js
@@ -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