chore: var durch let ersetzt.

This commit is contained in:
muli 2024-01-21 21:40:37 +01:00
parent a24ef62c30
commit 15568aeb5d

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 {