Revert "User HTTP instead of HTTPS when fetching icon in docker internal network"

This reverts commit 498de660ba.
This commit is contained in:
abias 2023-05-22 18:42:05 -04:00
parent fd39b21b12
commit 19408b26bf

View file

@ -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());