]> Untitled Git - lemmy-ui.git/blobdiff - src/server/index.tsx
Lint fix (#1035)
[lemmy-ui.git] / src / server / index.tsx
index 05988cf76c7d03287059f6f143b5f646ecdf2fc9..9d91f14db00fe84429b14d4af275fb1f12b8d152 100644 (file)
@@ -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());