diff --git a/src/app/util.js b/src/app/util.js index 136ed09..8bd4122 100644 --- a/src/app/util.js +++ b/src/app/util.js @@ -65,6 +65,10 @@ export function Heading2({ children, ...props }) { * safeImageUrl returns an HTTPS-safe image URL for Neopets assets! */ export function safeImageUrl(urlString) { + if (urlString == null) { + return urlString; + } + const url = new URL(urlString); if (url.origin === "http://images.neopets.com") {