Skip to content

Commit

Permalink
remove extra 100ms timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ruocaled authored and AUTOMATIC1111 committed Oct 15, 2022
1 parent c7cd2fd commit 661a619
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions javascript/progressbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 661a619

Please sign in to comment.