diff --git a/src/js/app.js b/src/js/app.js index dba59d6..6bad61d 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -117,6 +117,10 @@ class App { this.toggleNav(this.body); }); + window.addEventListener('resizle', () => { + this.isMobile = this.width < 1024; + }); + this.DOM.scrollLink?.forEach((el, i) => { el.addEventListener('click', (e) => { let link = el.getAttribute('href');