From 19408b26bf504d25b5d4addc4c8c620fda81bcd8 Mon Sep 17 00:00:00 2001 From: abias Date: Mon, 22 May 2023 18:42:05 -0400 Subject: [PATCH] Revert "User HTTP instead of HTTPS when fetching icon in docker internal network" This reverts commit 498de660bac1bffe15fef74a898c6d669794196a. --- src/server/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index 19deb9c4..05988cf7 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());