aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/notification.js
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-01 11:39:52 +0000
committerGitHub <noreply@github.com>2023-05-01 11:39:52 +0000
commit696c338ee2841830fd5010427d90347329d5786a (patch)
tree6f9c37f302e6bcaf1ce3e1f1913f2db54f3b184e /javascript/notification.js
parentb463b8a12672e010a8c86ea1c73b2c14ae5555d5 (diff)
parent50f63e22472dd532ddd76adb28f29aef46a71a86 (diff)
downloadstable-diffusion-webui-gfx803-696c338ee2841830fd5010427d90347329d5786a.tar.gz
stable-diffusion-webui-gfx803-696c338ee2841830fd5010427d90347329d5786a.tar.bz2
stable-diffusion-webui-gfx803-696c338ee2841830fd5010427d90347329d5786a.zip
Merge pull request #9953 from akx/js-misc-fixes
Miscellaneous JS fixes
Diffstat (limited to 'javascript/notification.js')
-rw-r--r--javascript/notification.js6
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);
}
}