mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 12:11:35 +01:00
fix: fix JavaScript error when menu list is empty (#5)
This commit is contained in:
parent
7ef6fe22a3
commit
9b2e5a305c
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
// mobile menu
|
||||
const btnMenu = document.querySelector(".btn-menu");
|
||||
btnMenu.addEventListener("click", () => {
|
||||
btnMenu?.addEventListener("click", () => {
|
||||
htmlClass.toggle("open");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue