Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaanposni committed Dec 1, 2024
1 parent 8f611de commit 98557ff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/psaggregator/src/lib/components/CDNImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
}
async function calculateImageSrc(src: string | null | undefined) {
if (!src) return;
if (src.startsWith("http")) {
imageSrc = src;
return;
}
imageSrc = `${src}?width=${getPreferredImageSize()}`;
}
Expand Down

0 comments on commit 98557ff

Please sign in to comment.