X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fserver%2Findex.tsx;h=9d91f14db00fe84429b14d4af275fb1f12b8d152;hb=ac2a83a7a66974158ce77920525bea659301cbd2;hp=05988cf76c7d03287059f6f143b5f646ecdf2fc9;hpb=ffe95ee1c68c428695f98e5b1ebd05d13549f71d;p=lemmy-ui.git diff --git a/src/server/index.tsx b/src/server/index.tsx index 05988cf..9d91f14 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -356,7 +356,7 @@ export async function generateManifestBase64(site: Site) { async function fetchIconPng(iconUrl: string) { return await fetch( - iconUrl.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) + iconUrl.replace(/https?:\/\/[^\/]+/g, getHttpBaseInternal()) ) .then(res => res.blob()) .then(blob => blob.arrayBuffer());