Add debug statement.

This commit is contained in:
abias 2023-05-22 18:15:44 -04:00
parent 498de660ba
commit 7fbb12a4bd

View file

@ -355,11 +355,11 @@ export async function generateManifestBase64(site: Site) {
}
async function fetchIconPng(iconUrl: string) {
return await fetch(
iconUrl
const fetchIconUrl = iconUrl
.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal())
.replace(/https/, "http")
)
.replace(/https/, "http");
console.log(`PNG URL: ${fetchIconUrl}`);
return await fetch(fetchIconUrl)
.then(res => res.blob())
.then(blob => blob.arrayBuffer());
}