mirror of
https://github.com/vladmandic/automatic
synced 2026-09-10 23:08:43 +02:00
change logo and add splash screen
This commit is contained in:
@@ -12,7 +12,7 @@ function initNotifications() {
|
||||
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('logo.png')) return;
|
||||
if (!headImg || headImg === lastHeadImg || headImg.includes('logo-bg-')) return;
|
||||
const audioNotification = gradioApp().querySelector('#audio_notification audio');
|
||||
if (audioNotification) audioNotification.play();
|
||||
lastHeadImg = headImg;
|
||||
|
||||
Reference in New Issue
Block a user