Commit cee1a406 authored by kaalibro's avatar kaalibro

Fix linter issues

parent 1d42babd
...@@ -163,11 +163,13 @@ document.addEventListener('keydown', function(e) { ...@@ -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";
} }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment