chore: var durch let ersetzt.
This commit is contained in:
parent
a24ef62c30
commit
15568aeb5d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user