diff options
author | Aarni Koskela <akx@iki.fi> | 2023-05-17 12:46:58 +0000 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2023-05-17 13:09:06 +0000 |
commit | 9c54b78d9dde5601e916f308d9a9d6953ec39430 (patch) | |
tree | 7eff4b1d65193de1ddc5503d46bba6508a1e903e /javascript/notification.js | |
parent | 4f11f285f912fd48bc85a650a0384b6044d68b86 (diff) | |
download | stable-diffusion-webui-gfx803-9c54b78d9dde5601e916f308d9a9d6953ec39430.tar.gz stable-diffusion-webui-gfx803-9c54b78d9dde5601e916f308d9a9d6953ec39430.tar.bz2 stable-diffusion-webui-gfx803-9c54b78d9dde5601e916f308d9a9d6953ec39430.zip |
Run `eslint --fix` (and normalize tabs to spaces)
Diffstat (limited to 'javascript/notification.js')
-rw-r--r-- | javascript/notification.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/javascript/notification.js b/javascript/notification.js index 83fce1f8..a68a76f2 100644 --- a/javascript/notification.js +++ b/javascript/notification.js @@ -4,14 +4,14 @@ let lastHeadImg = null; let notificationButton = null; -onUiUpdate(function(){ - if(notificationButton == null){ - notificationButton = gradioApp().getElementById('request_notifications') +onUiUpdate(function() { + if (notificationButton == null) { + notificationButton = gradioApp().getElementById('request_notifications'); - if(notificationButton != null){ + if (notificationButton != null) { notificationButton.addEventListener('click', () => { void Notification.requestPermission(); - },true); + }, true); } } @@ -42,7 +42,7 @@ onUiUpdate(function(){ } ); - notification.onclick = function(_){ + notification.onclick = function(_) { parent.focus(); this.close(); }; |