mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Fix linter issues
This commit is contained in:
parent
1d42babd32
commit
cee1a40651
@ -163,11 +163,13 @@ document.addEventListener('keydown', function(e) {
|
||||
}
|
||||
|
||||
if (isEsc) {
|
||||
const globalPopup = document.querySelector('.global-popup');
|
||||
if (!globalPopup || globalPopup.style.display === "none") {
|
||||
interruptButton.click();
|
||||
e.preventDefault();
|
||||
} else {
|
||||
closePopup();
|
||||
if (!globalPopup) return;
|
||||
globalPopup.style.display = "none";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user