diff options
author | uservar <63248296+uservar@users.noreply.github.com> | 2022-09-16 19:07:14 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-17 04:54:03 +0000 |
commit | 6168d09218073c369fd08b7208f93805f624ec05 (patch) | |
tree | ccf066e3364e6e94afb6e325160d86ad6241f6b1 /script.js | |
parent | 449719b2fc9e8fd2e61f219e0979deb83c05177c (diff) | |
download | stable-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.
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 2 |
1 files changed, 1 insertions, 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 |