mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-25 02:19:34 +00:00
parent
7fbb12a4bd
commit
fd39b21b12
|
@ -355,11 +355,11 @@ export async function generateManifestBase64(site: Site) {
|
|||
}
|
||||
|
||||
async function fetchIconPng(iconUrl: string) {
|
||||
const fetchIconUrl = iconUrl
|
||||
.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal())
|
||||
.replace(/https/, "http");
|
||||
console.log(`PNG URL: ${fetchIconUrl}`);
|
||||
return await fetch(fetchIconUrl)
|
||||
return await fetch(
|
||||
iconUrl
|
||||
.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal())
|
||||
.replace(/https/, "http")
|
||||
)
|
||||
.then(res => res.blob())
|
||||
.then(blob => blob.arrayBuffer());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue