diff --git a/src/components/common/BasicScripts.astro b/src/components/common/BasicScripts.astro index 9f4a383..202a1fc 100644 --- a/src/components/common/BasicScripts.astro +++ b/src/components/common/BasicScripts.astro @@ -105,7 +105,7 @@ import { UI } from 'astrowind:config'; newlink.click(); }); - let screenSize = window.matchMedia('(max-width: 767px)'); + const screenSize = window.matchMedia('(max-width: 767px)'); screenSize.addEventListener('change', function () { document.querySelector('[data-aw-toggle-menu]')?.classList.remove('expanded'); document.body.classList.remove('overflow-hidden');