From: abias Date: Mon, 22 May 2023 22:15:44 +0000 (-0400) Subject: Add debug statement. X-Git-Url: http://these/git/readmes/%7B%60%24%7BwebArchiveUrl%7D/save/static/%7BrepoUrl%7D?a=commitdiff_plain;h=7fbb12a4bde29d72c1bf55e0d0a954f19c863b4a;p=lemmy-ui.git Add debug statement. --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 19deb9c..7004160 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -355,11 +355,11 @@ export async function generateManifestBase64(site: Site) { } async function fetchIconPng(iconUrl: string) { - return await fetch( - iconUrl - .replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) - .replace(/https/, "http") - ) + const fetchIconUrl = iconUrl + .replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) + .replace(/https/, "http"); + console.log(`PNG URL: ${fetchIconUrl}`); + return await fetch(fetchIconUrl) .then(res => res.blob()) .then(blob => blob.arrayBuffer()); }