diff options
author | ruocaled <ruocaled@gmail.com> | 2022-10-15 02:25:30 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-15 06:32:01 +0000 |
commit | 661a61985c7bee34a67390a05761e25830a6b918 (patch) | |
tree | f816a3d2b834ab952276d07966b2501e8873c47f | |
parent | c7cd2fda5a6c9c97d5c238e0f2e1146d346e0e93 (diff) | |
download | stable-diffusion-webui-gfx803-661a61985c7bee34a67390a05761e25830a6b918.tar.gz stable-diffusion-webui-gfx803-661a61985c7bee34a67390a05761e25830a6b918.tar.bz2 stable-diffusion-webui-gfx803-661a61985c7bee34a67390a05761e25830a6b918.zip |
remove extra 100ms timeout
-rw-r--r-- | javascript/progressbar.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/javascript/progressbar.js b/javascript/progressbar.js index 35f20b15..076f0a97 100644 --- a/javascript/progressbar.js +++ b/javascript/progressbar.js @@ -74,9 +74,7 @@ function check_gallery(id_gallery){ if (prevSelectedIndex !== -1 && galleryButtons.length>prevSelectedIndex && !galleryBtnSelected) { //automatically re-open previously selected index (if exists) galleryButtons[prevSelectedIndex].click(); - setTimeout(function (){ - showGalleryImage() - },100) + showGalleryImage(); } }) galleryObservers[id_gallery].observe( gallery, { childList:true, subtree:false }) |