Fix notification not playing when built-in webui tab is inactive

This commit is contained in:
catboxanon 2023-08-28 12:09:37 -04:00
parent d1c93c3822
commit 592b0dcfa7
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ onAfterUiUpdate(function() {
}
}
const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"][style*="display: block"] div[id$="_results"] .thumbnail-item > img');
const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"] div[id$="_results"] .thumbnail-item > img');
if (galleryPreviews == null) return;