mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 16:24:33 +02:00
draft full merge from upstream
This commit is contained in:
@@ -12,7 +12,7 @@ onUiUpdate(function(){
|
||||
const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"][style*="display: block"] div[id$="_results"] .thumbnail-item > img');
|
||||
if (!galleryPreviews) return;
|
||||
const headImg = galleryPreviews[0]?.src;
|
||||
if (!headImg || headImg == lastHeadImg || headImg.endsWith('automatic.png')) return;
|
||||
if (!headImg || headImg == lastHeadImg || headImg.endsWith('logo.png')) return;
|
||||
const audioNotification = gradioApp().querySelector('#audio_notification audio');
|
||||
if (audioNotification) audioNotification.play();
|
||||
lastHeadImg = headImg;
|
||||
|
||||
Reference in New Issue
Block a user