From a89ba368174c9464d662d9a381b6bc4186190cb1 Mon Sep 17 00:00:00 2001 From: Luca Vogels Date: Sun, 14 Jan 2024 00:43:44 +0100 Subject: [PATCH] Bugfix with fetchPriority --- image/OptimizedImage.js | 2 +- package.json | 2 +- src/image/OptimizedImage.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/image/OptimizedImage.js b/image/OptimizedImage.js index 013f3ae..656c6f6 100644 --- a/image/OptimizedImage.js +++ b/image/OptimizedImage.js @@ -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 }))); diff --git a/package.json b/package.json index 940b8dc..302dc8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lup-images", - "version": "1.2.1", + "version": "1.2.2", "description": "Optimizes images for web applications", "files": [ "image/**/*", diff --git a/src/image/OptimizedImage.tsx b/src/image/OptimizedImage.tsx index d5ba686..bdb5f4c 100644 --- a/src/image/OptimizedImage.tsx +++ b/src/image/OptimizedImage.tsx @@ -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 {sources}