mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-15 11:10:25 -07:00
Run eslint --fix (and normalize tabs to spaces)
This commit is contained in:
parent
4f11f285f9
commit
9c54b78d9d
21 changed files with 1549 additions and 1507 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue