diff options
author | Thomas Young <35073576+DrakeRichards@users.noreply.github.com> | 2023-02-22 21:31:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 21:31:49 +0000 |
commit | 6825de7bc811d777ff0d462e5668fa4fba73a889 (patch) | |
tree | 98d00734c323ab28ba5930f17d3dcd243edf7639 | |
parent | 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 (diff) | |
download | stable-diffusion-webui-gfx803-6825de7bc811d777ff0d462e5668fa4fba73a889.tar.gz stable-diffusion-webui-gfx803-6825de7bc811d777ff0d462e5668fa4fba73a889.tar.bz2 stable-diffusion-webui-gfx803-6825de7bc811d777ff0d462e5668fa4fba73a889.zip |
Added results selector
This causes the querySelectorAll function to only select images in a results div, ignoring images that might be in an extension's gallery.
-rw-r--r-- | javascript/notification.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/notification.js b/javascript/notification.js index 040a3afa..5ae6df24 100644 --- a/javascript/notification.js +++ b/javascript/notification.js @@ -15,7 +15,7 @@ onUiUpdate(function(){ } } - const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"][style*="display: block"] img.h-full.w-full.overflow-hidden'); + const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"][style*="display: block"] div[id$="_results"] img.h-full.w-full.overflow-hidden'); if (galleryPreviews == null) return; |