diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-17 20:18:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 20:18:56 +0000 |
commit | 04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce (patch) | |
tree | 1cb30a63099a69f678d4901b495203b765a6df59 /javascript/notification.js | |
parent | 7201d940a4fe664beb9662fadbeade4ee1d788f7 (diff) | |
parent | b397f63e00bbfbe9087d80abb457aa9a593b181b (diff) | |
download | stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.tar.gz stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.tar.bz2 stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.zip |
Merge branch 'dev' into improve-frontend-responsiveness
Diffstat (limited to 'javascript/notification.js')
-rw-r--r-- | javascript/notification.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript/notification.js b/javascript/notification.js index 8ddd4c5d..83fce1f8 100644 --- a/javascript/notification.js +++ b/javascript/notification.js @@ -2,15 +2,15 @@ let lastHeadImg = null; -notificationButton = null +let notificationButton = null; onUiUpdate(function(){ if(notificationButton == null){ notificationButton = gradioApp().getElementById('request_notifications') if(notificationButton != null){ - notificationButton.addEventListener('click', function (evt) { - Notification.requestPermission(); + notificationButton.addEventListener('click', () => { + void Notification.requestPermission(); },true); } } |