From 460c293e0e373c7af8304ee0cbe367f2d51eea9e Mon Sep 17 00:00:00 2001 From: tinect Date: Tue, 12 Mar 2024 21:48:00 +0100 Subject: [PATCH] feat: remove object-fit polyfill of lazySizes --- composer.json | 2 +- src/Resources/app/storefront/src/main.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0c94bab..acdb3db 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "thumbnail" ], "description": "Automatically calculate the best thumbnail size. This means you don't have to worry about the \"sizes\" attribute for the images. Additionally, you gain a score.", - "version": "2.0.7", + "version": "2.1.0", "type": "shopware-platform-plugin", "license": "mit", "authors": [ diff --git a/src/Resources/app/storefront/src/main.js b/src/Resources/app/storefront/src/main.js index 4737d65..2be71f3 100644 --- a/src/Resources/app/storefront/src/main.js +++ b/src/Resources/app/storefront/src/main.js @@ -2,7 +2,6 @@ import 'lazysizes'; import 'lazysizes/plugins/native-loading/ls.native-loading'; import 'lazysizes/plugins/attrchange/ls.attrchange'; import 'lazysizes/plugins/parent-fit/ls.parent-fit'; -import 'lazysizes/plugins/object-fit/ls.object-fit'; document.addEventListener('lazybeforesizes', (e) => { const aspectRatio = e.target.getAttribute('data-aspectratio');