Skip to content

Commit

Permalink
feat: remove object-fit polyfill of lazySizes
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Mar 12, 2024
1 parent cacc11b commit 460c293
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
1 change: 0 additions & 1 deletion src/Resources/app/storefront/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 460c293

Please sign in to comment.