Skip to content

Commit

Permalink
Merge branch 'manawiki:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu authored Nov 22, 2024
2 parents 8b1ae78 + bcc5473 commit fc1a2bf
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/components/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ export function Image({
width={width ?? searchParams.get("width") ?? undefined}
height={height ?? searchParams.get("height") ?? undefined}
alt={alt}
src={
url && URL.canParse(url)
? `${url}?${searchParams.toString()}`
: "/favicon.ico"
}
src={url ? `${url}?${searchParams.toString()}` : "/favicon.ico"}
/>
);

Expand Down Expand Up @@ -115,11 +111,7 @@ export function Image({
alt={alt}
sizes={srcSet ? `(min-width: 1200px) 728px, 100vw` : undefined}
srcSet={srcSet}
src={
url && URL.canParse(url)
? `${url}?${searchParams.toString()}`
: "/favicon.ico"
}
src={url ? `${url}?${searchParams.toString()}` : "/favicon.ico"}
/>
);
}

0 comments on commit fc1a2bf

Please sign in to comment.