Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kaalibro committed Dec 10, 2023
1 parent 1d42bab commit cee1a40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
});
Expand Down

0 comments on commit cee1a40

Please sign in to comment.