Always replace host with internal host

This commit is contained in:
abias 2023-05-22 19:15:11 -04:00
parent 19408b26bf
commit ee95bd05fb

View file

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