diff --git a/_dev/js/theme/components/responsive.js b/_dev/js/theme/components/responsive.js index 003b71d7..b699b703 100644 --- a/_dev/js/theme/components/responsive.js +++ b/_dev/js/theme/components/responsive.js @@ -5,10 +5,7 @@ function isMobile() { return prestashop.responsive.current_width < prestashop.responsive.min_width; } -/* eslint-disable */ prestashop.responsive = {}; -/* eslint-enable */ - prestashop.responsive.current_width = window.innerWidth; prestashop.responsive.min_width = 768; prestashop.responsive.mobile = isMobile(); @@ -52,7 +49,6 @@ function toggleMobileStyles() { } const handleResize = () => { - const { responsive } = prestashop; const cw = prestashop.responsive.current_width; const mw = prestashop.responsive.min_width; const w = window.innerWidth;