mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Add debug statement.
This commit is contained in:
parent
498de660ba
commit
7fbb12a4bd
1 changed files with 5 additions and 5 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue