Skip to content

Commit

Permalink
fix: fix JavaScript error when menu list is empty (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinRamiroDiaz authored Jan 18, 2024
1 parent 7ef6fe2 commit 9b2e5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// mobile menu
const btnMenu = document.querySelector(".btn-menu");
btnMenu.addEventListener("click", () => {
btnMenu?.addEventListener("click", () => {
htmlClass.toggle("open");
});

Expand Down

0 comments on commit 9b2e5a3

Please sign in to comment.