From 15568aeb5d1b110b1bc0f405b0e170470d31d0fb Mon Sep 17 00:00:00 2001 From: muli Date: Sun, 21 Jan 2024 21:40:37 +0100 Subject: [PATCH] chore: var durch let ersetzt. --- assets/js/nav_toggle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/nav_toggle.js b/assets/js/nav_toggle.js index fb69f2b..3cd58cf 100644 --- a/assets/js/nav_toggle.js +++ b/assets/js/nav_toggle.js @@ -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 {