Compare commits

..

No commits in common. "8e269df3c1c93d0f924e3409b396776f82c8ebe8" and "bd4b67316c9b374e64ce336288ed572421d2f80b" have entirely different histories.

2 changed files with 4 additions and 8 deletions

View file

@ -266,10 +266,10 @@ const SpeciesFaceOption = React.memo(
`} `}
> >
<CrossFadeImage <CrossFadeImage
src={`https://pets.neopets.com/cp/${neopetsImageHash}/${emotionId}/1.png`} src={`https://pets.neopets-asset-proxy.openneo.net/cp/${neopetsImageHash}/${emotionId}/1.png`}
srcSet={ srcSet={
`https://pets.neopets.com/cp/${neopetsImageHash}/${emotionId}/1.png 1x, ` + `https://pets.neopets-asset-proxy.openneo.net/cp/${neopetsImageHash}/${emotionId}/1.png 1x, ` +
`https://pets.neopets.com/cp/${neopetsImageHash}/${emotionId}/6.png 2x` `https://pets.neopets-asset-proxy.openneo.net/cp/${neopetsImageHash}/${emotionId}/6.png 2x`
} }
alt={speciesName} alt={speciesName}
width={55} width={55}

View file

@ -161,11 +161,7 @@ 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) {
// NOTE: Previously we would rewrite this to our proxy that adds an url.host = "images.neopets-asset-proxy.openneo.net";
// `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" ||