Explorar o código

prevent escape button causing an interrupt when no generation has been made yet

AUTOMATIC1111 hai 1 ano
pai
achega
4573195894
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      script.js

+ 1 - 1
script.js

@@ -167,7 +167,7 @@ document.addEventListener('keydown', function(e) {
         const lightboxModal = document.querySelector('#lightboxModal');
         if (!globalPopup || globalPopup.style.display === 'none') {
             if (document.activeElement === lightboxModal) return;
-            if (interruptButton.style.display !== 'none') {
+            if (interruptButton.style.display === 'block') {
                 interruptButton.click();
                 e.preventDefault();
             }