]> Untitled Git - lemmy-ui.git/commitdiff
Add debug statement.
authorabias <abias1122@gmail.com>
Mon, 22 May 2023 22:15:44 +0000 (18:15 -0400)
committerabias <abias1122@gmail.com>
Mon, 22 May 2023 22:15:44 +0000 (18:15 -0400)
src/server/index.tsx

index 19deb9c414958c442e9854ec6223d7d496a778e9..70041603ab702801448db0c67730ea3e89b9a486 100644 (file)
@@ -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());
 }