Skip to content

Commit

Permalink
Fix file names containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Aug 13, 2024
1 parent 3071d5d commit 4b55e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/NativeIdealImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function NativeIdealImage(props: NativeIdealImageProps): JSX.Elem
srcSet={
isSingleImage
? format.srcSet[0]!.path
: format.srcSet.map((image) => `${image.path} ${image.width}w`).join(',')
: format.srcSet.map((image) => `${encodeURI(image.path)} ${image.width}w`).join(',')
}
type={format.mime}
key={format.mime}
Expand Down

0 comments on commit 4b55e17

Please sign in to comment.