From 21ff91fc8fc6905f7b09c51a4b8ee83b6f4df561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Ste=CC=A8pien=CC=81?= Date: Tue, 10 Oct 2023 00:13:35 +0200 Subject: [PATCH] eslint fix --- _dev/js/theme/components/responsive.js | 4 ---- 1 file changed, 4 deletions(-) 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;