Skip to content

Commit

Permalink
Bugfix with fetchPriority
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-vogels committed Jan 13, 2024
1 parent d8be1ed commit a89ba36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion image/OptimizedImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function OptimizedImage(props) {
// fetchPriority is not supported by TSX yet
var tags = {};
if (props.fetchPriority)
tags.fetchpriority = props.fetchPriority;
tags.fetchPriority = props.fetchPriority;
return react_1.default.createElement("picture", null,
sources,
react_1.default.createElement("img", __assign({ className: props.className, style: props.style }, tags, { src: props.src, width: props.width, height: props.height || "auto", alt: props.alt, draggable: props.draggable, title: props.title, loading: props.loading })));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lup-images",
"version": "1.2.1",
"version": "1.2.2",
"description": "Optimizes images for web applications",
"files": [
"image/**/*",
Expand Down
2 changes: 1 addition & 1 deletion src/image/OptimizedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function OptimizedImage(props: OptimizedImageProps){

// fetchPriority is not supported by TSX yet
const tags: any = {};
if(props.fetchPriority) tags.fetchpriority = props.fetchPriority;
if(props.fetchPriority) tags.fetchPriority = props.fetchPriority;

return <picture>
{sources}
Expand Down

0 comments on commit a89ba36

Please sign in to comment.