diff --git a/js/main.js b/js/main.js index fe0b204..3e498f5 100644 --- a/js/main.js +++ b/js/main.js @@ -130,7 +130,7 @@ document.querySelector("#getQuote-btn").addEventListener("click", quote); document.querySelector("#clear-btn").addEventListener("click", clearQuote); // Toggle dropdown state -document.querySelector(Window).addEventListener("click", isActive); +window.addEventListener("click", isActive); // If there is no value in the input field, don't display card