Skip to content

Commit

Permalink
Revert "refactor: migrate to webp"
Browse files Browse the repository at this point in the history
This reverts commit 973553b.
  • Loading branch information
hyoban committed Sep 22, 2024
1 parent f1b86b3 commit e7081cf
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}?url=${encodeURIComponent(url)}&width=${width}&height=${height}`
}) => `${env.VITE_IMGPROXY_URL}/unsafe/fit-in/${width}x${height}/${encodeURIComponent(url)}`

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

0 comments on commit e7081cf

Please sign in to comment.