diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-02 19:44:46 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-02 19:44:46 +0000 |
commit | 251ecee6949c36e9df1d99a950b3e1af2b5fa2b6 (patch) | |
tree | 4cee649c04f46d463fb78f7f76ffcb7b50ea8b1e /javascript/ui.js | |
parent | 8d12a729b8b036cb765cf2d87576d5ae256135c8 (diff) | |
download | stable-diffusion-webui-gfx803-251ecee6949c36e9df1d99a950b3e1af2b5fa2b6.tar.gz stable-diffusion-webui-gfx803-251ecee6949c36e9df1d99a950b3e1af2b5fa2b6.tar.bz2 stable-diffusion-webui-gfx803-251ecee6949c36e9df1d99a950b3e1af2b5fa2b6.zip |
make "send to" buttons send actual dimension of the sent image rather than fields
Diffstat (limited to 'javascript/ui.js')
-rw-r--r-- | javascript/ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/ui.js b/javascript/ui.js index 587dd782..d0c054d9 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -19,7 +19,7 @@ function selected_gallery_index(){ function extract_image_from_gallery(gallery){ if(gallery.length == 1){ - return gallery[0] + return [gallery[0]] } index = selected_gallery_index() @@ -28,7 +28,7 @@ function extract_image_from_gallery(gallery){ return [null] } - return gallery[index]; + return [gallery[index]]; } function args_to_array(args){ |