From: abias Date: Mon, 22 May 2023 22:42:05 +0000 (-0400) Subject: Revert "User HTTP instead of HTTPS when fetching icon in docker internal network" X-Git-Url: http://these/git/readmes/%24%7B%60data:application/%24%7BappleTouchIcon%7D?a=commitdiff_plain;h=19408b26bf504d25b5d4addc4c8c620fda81bcd8;p=lemmy-ui.git Revert "User HTTP instead of HTTPS when fetching icon in docker internal network" This reverts commit 498de660bac1bffe15fef74a898c6d669794196a. --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 19deb9c..05988cf 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -356,9 +356,7 @@ export async function generateManifestBase64(site: Site) { async function fetchIconPng(iconUrl: string) { return await fetch( - iconUrl - .replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) - .replace(/https/, "http") + iconUrl.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) ) .then(res => res.blob()) .then(blob => blob.arrayBuffer());