From 498de660bac1bffe15fef74a898c6d669794196a Mon Sep 17 00:00:00 2001 From: abias Date: Mon, 22 May 2023 18:10:16 -0400 Subject: [PATCH] User HTTP instead of HTTPS when fetching icon in docker internal network --- src/server/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index 05988cf..19deb9c 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -356,7 +356,9 @@ export async function generateManifestBase64(site: Site) { async function fetchIconPng(iconUrl: string) { return await fetch( - iconUrl.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) + iconUrl + .replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) + .replace(/https/, "http") ) .then(res => res.blob()) .then(blob => blob.arrayBuffer()); -- 2.44.1