chore: var durch let ersetzt.

This commit is contained in:
muli 2024-01-21 21:40:37 +01:00
parent c7583caeb8
commit 07df68f87d

View File

@ -1,5 +1,5 @@
document.getElementsByClassName('primary_nav__toggle')[0].addEventListener('click', function(){
var nav_list = document.getElementsByClassName('primary_nav__navlist')[0]
let nav_list = document.getElementsByClassName('primary_nav__navlist')[0]
if (nav_list.style.display === 'block') {
nav_list.style.display = 'none';
} else {