Skip to content

Commit 1b5a22d

Browse files
fix properties which contains comma
1 parent 7776625 commit 1b5a22d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/components/Image.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ export const getEarlyHintFromSrcProps = (srcProps: {
178178
const earlyHintParts = [`<${srcProps.src}>; rel=preload; as=image`];
179179

180180
if (srcProps?.imagesrcset) {
181-
earlyHintParts.push(`; imagesrcset=${srcProps.imagesrcset}`);
181+
earlyHintParts.push(`; imagesrcset="${srcProps.imagesrcset}"`);
182182
}
183183

184184
if (srcProps?.imagesizes) {
185-
earlyHintParts.push(`; imagesizes=${srcProps.imagesizes}`);
185+
earlyHintParts.push(`; imagesizes="${srcProps.imagesizes}"`);
186186
}
187187

188188
if (srcProps?.fetchpriority) {

0 commit comments

Comments
 (0)