Minor Performance Improvements

This commit is contained in:
oitsjustjose 2020-03-05 22:31:40 -05:00
commit 114cccb9f2
3 changed files with 24 additions and 10 deletions

View file

@ -26,12 +26,6 @@ window.addEventListener("DOMContentLoaded", (evt) => {
});
});
// document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
// let modal = document.getElementById(modalTrigerEl.getAttribute("for-modal"));
// modal.classList.remove("visible");
// modal.removeAttribute("active");
// });
document.body.addEventListener('keydown', (evt) => {
if (evt.key == "Escape") {
let modal = document.querySelector(".modal[active]");