Fix linter issues

This commit is contained in:
kaalibro 2023-12-10 17:06:12 +06:00
parent 1d42babd32
commit cee1a40651
No known key found for this signature in database

View File

@ -163,11 +163,13 @@ document.addEventListener('keydown', function(e) {
} }
if (isEsc) { if (isEsc) {
const globalPopup = document.querySelector('.global-popup');
if (!globalPopup || globalPopup.style.display === "none") { if (!globalPopup || globalPopup.style.display === "none") {
interruptButton.click(); interruptButton.click();
e.preventDefault(); e.preventDefault();
} else { } else {
closePopup(); if (!globalPopup) return;
globalPopup.style.display = "none";
} }
} }
}); });