Skip to content

Commit

Permalink
refactor: migrate to webp
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Sep 20, 2024
1 parent 0745ac0 commit 973553b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/renderer/src/lib/img-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getImageProxyUrl = ({
url: string
width: number
height: number
}) => `${env.VITE_IMGPROXY_URL}/unsafe/fit-in/${width}x${height}/${encodeURIComponent(url)}`
}) => `${env.VITE_IMGPROXY_URL}?url=${encodeURIComponent(url)}&width=${width}&height=${height}`

export const replaceImgUrlIfNeed = (url: string) => {
for (const rule of imageRefererMatches) {
Expand Down

0 comments on commit 973553b

Please sign in to comment.