We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca5abc commit f8fd58fCopy full SHA for f8fd58f
apps/renderer/src/lib/img-proxy.ts
@@ -27,11 +27,9 @@ export const replaceImgUrlIfNeed = (url?: string) => {
27
}
28
29
30
- if (isWebBuild) {
31
- for (const rule of imageRefererMatches) {
32
- if (rule.url.test(url)) {
33
- return getImageProxyUrl({ url, width: 0, height: 0 })
34
- }
+ for (const rule of imageRefererMatches) {
+ if ((isWebBuild || rule.force) && rule.url.test(url)) {
+ return getImageProxyUrl({ url, width: 0, height: 0 })
35
36
37
return url
packages/shared/src/image.ts
@@ -25,7 +25,8 @@ export const imageRefererMatches = [
25
},
26
{
url: /^https:\/\/sp1\.piokok\.com/,
- referer: "https://sp1.piokok.com",
+ referer: "https://www.piokok.com",
+ force: true,
]
0 commit comments