Selaa lähdekoodia

Make the generated image count only count new images in the currently active tab

Bwin4L 2 vuotta sitten
vanhempi
commit
303df25cc2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      javascript/notification.js

+ 1 - 1
javascript/notification.js

@@ -15,7 +15,7 @@ onUiUpdate(function(){
         }
     }
 
-    const galleryPreviews = gradioApp().querySelectorAll('img.h-full.w-full.overflow-hidden');
+    const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"][style*="display: block"] img.h-full.w-full.overflow-hidden');
 
     if (galleryPreviews == null) return;