Skip to content

Commit

Permalink
fix: Use srcSetWebp in webp image source
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrckvzn committed Nov 13, 2021
2 parents 5e5506c + 276cea8 commit c6e8f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ViewModels/ImageViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected function setSourcesAttributes()

if (config('twill-image.webp_support')) {
$sources[] = $this->buildSourceObject(
$image['srcSet'],
$image['srcSetWebp'],
$image['aspectRatio'],
$this->mimeType("webp"),
);
Expand Down

0 comments on commit c6e8f0b

Please sign in to comment.