Skip to content

Commit

Permalink
Fix toggling of controls modal
Browse files Browse the repository at this point in the history
  • Loading branch information
j4ckofalltrades committed Oct 9, 2023
1 parent 057823b commit 54d8cdb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 54d8cdb

Please sign in to comment.