Merge branch 'main' into nicer-error-hnadling

This commit is contained in:
abias 2023-05-23 08:01:09 -04:00
commit 5af62ebd84

View file

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