diff --git a/src/index.js b/src/index.js index cd0b9b4..d13069d 100644 --- a/src/index.js +++ b/src/index.js @@ -111,9 +111,6 @@ const controlsModal = document.getElementById("controls") const controlsModalBtn = document.getElementById("btn-controls") controlsModalBtn.onclick = () => (controlsModal.style.display = "block") -const closeBtn = document.getElementsByClassName("close")[0] -closeBtn.onclick = () => (controlsModal.style.display = "none") - window.onclick = (event) => { if (event.target === controlsModal) { controlsModal.style.display = "none"