diff --git a/scripts.js b/scripts.js index a214553..0f0e7a1 100644 --- a/scripts.js +++ b/scripts.js @@ -121,7 +121,7 @@ const toggleDarkMode = () => { /* Dialog */ let modalContents = document.getElementsByClassName('modal-toggle') - for (content of modalContents) { + for (let content of modalContents) { content.classList.toggle("modal--dark-mode") }