mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 11:21:26 +00:00
Always replace host with internal host
This commit is contained in:
parent
19408b26bf
commit
ee95bd05fb
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ export async function generateManifestBase64(site: Site) {
|
||||||
|
|
||||||
async function fetchIconPng(iconUrl: string) {
|
async function fetchIconPng(iconUrl: string) {
|
||||||
return await fetch(
|
return await fetch(
|
||||||
iconUrl.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal())
|
iconUrl.replace(/https?:\/\/[^\/]+/g, getHttpBaseInternal())
|
||||||
)
|
)
|
||||||
.then(res => res.blob())
|
.then(res => res.blob())
|
||||||
.then(blob => blob.arrayBuffer());
|
.then(blob => blob.arrayBuffer());
|
||||||
|
|
Loading…
Reference in a new issue