aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/notification.js
diff options
context:
space:
mode:
authord8ahazard <d8ahazard@gmail.com>2022-09-27 16:02:41 +0000
committerd8ahazard <d8ahazard@gmail.com>2022-09-27 16:02:41 +0000
commit5756d517a6342d8a9ffa3ead636dcb84b463d2e3 (patch)
tree6feb5e799520b66aa65f09f7dbb352f4e3813a60 /javascript/notification.js
parent11875f586323cea7c5b8398976449788a83dee76 (diff)
parentada901ed661a717c44281d640b8fc0a275d4cb48 (diff)
downloadstable-diffusion-webui-gfx803-5756d517a6342d8a9ffa3ead636dcb84b463d2e3.tar.gz
stable-diffusion-webui-gfx803-5756d517a6342d8a9ffa3ead636dcb84b463d2e3.tar.bz2
stable-diffusion-webui-gfx803-5756d517a6342d8a9ffa3ead636dcb84b463d2e3.zip
Merge remote-tracking branch 'upstream/master' into ModelLoader
Diffstat (limited to 'javascript/notification.js')
-rw-r--r--javascript/notification.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/javascript/notification.js b/javascript/notification.js
index e8159a7e..bdf614ad 100644
--- a/javascript/notification.js
+++ b/javascript/notification.js
@@ -25,6 +25,9 @@ onUiUpdate(function(){
lastHeadImg = headImg;
+ // play notification sound if available
+ gradioApp().querySelector('#audio_notification audio')?.play();
+
if (document.hasFocus()) return;
// Multiple copies of the images are in the DOM when one is selected. Dedup with a Set to get the real number generated.