change logo and add splash screen

This commit is contained in:
Vladimir Mandic
2023-07-19 14:07:54 -04:00
parent 19d176ea3d
commit 2b0def1192
23 changed files with 46 additions and 72 deletions
+1 -1
View File
@@ -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;