From ee95bd05fb42049202ecdeb667c2be880717775b Mon Sep 17 00:00:00 2001 From: abias Date: Mon, 22 May 2023 19:15:11 -0400 Subject: [PATCH] Always replace host with internal host --- src/server/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.44.1