Compare commits
2 commits
bd4b67316c
...
8e269df3c1
Author | SHA1 | Date | |
---|---|---|---|
8e269df3c1 | |||
bb90f92a06 |
2 changed files with 8 additions and 4 deletions
|
@ -266,10 +266,10 @@ const SpeciesFaceOption = React.memo(
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
<CrossFadeImage
|
<CrossFadeImage
|
||||||
src={`https://pets.neopets-asset-proxy.openneo.net/cp/${neopetsImageHash}/${emotionId}/1.png`}
|
src={`https://pets.neopets.com/cp/${neopetsImageHash}/${emotionId}/1.png`}
|
||||||
srcSet={
|
srcSet={
|
||||||
`https://pets.neopets-asset-proxy.openneo.net/cp/${neopetsImageHash}/${emotionId}/1.png 1x, ` +
|
`https://pets.neopets.com/cp/${neopetsImageHash}/${emotionId}/1.png 1x, ` +
|
||||||
`https://pets.neopets-asset-proxy.openneo.net/cp/${neopetsImageHash}/${emotionId}/6.png 2x`
|
`https://pets.neopets.com/cp/${neopetsImageHash}/${emotionId}/6.png 2x`
|
||||||
}
|
}
|
||||||
alt={speciesName}
|
alt={speciesName}
|
||||||
width={55}
|
width={55}
|
||||||
|
|
|
@ -161,7 +161,11 @@ export function safeImageUrl(
|
||||||
archiveUrl.search = new URLSearchParams({ url: url.toString() });
|
archiveUrl.search = new URLSearchParams({ url: url.toString() });
|
||||||
url = archiveUrl;
|
url = archiveUrl;
|
||||||
} else if (crossOrigin) {
|
} else if (crossOrigin) {
|
||||||
url.host = "images.neopets-asset-proxy.openneo.net";
|
// NOTE: Previously we would rewrite this to our proxy that adds an
|
||||||
|
// `Access-Control-Allow-Origin` header (images.neopets-asset-proxy.
|
||||||
|
// openneo.net), but images.neopets.com now includes this header for us!
|
||||||
|
//
|
||||||
|
// So, do nothing!
|
||||||
}
|
}
|
||||||
} else if (
|
} else if (
|
||||||
url.origin === "http://pets.neopets.com" ||
|
url.origin === "http://pets.neopets.com" ||
|
||||||
|
|
Loading…
Reference in a new issue