mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-28 19:20:21 +00:00
Revert "User HTTP instead of HTTPS when fetching icon in docker internal network"
This reverts commit 498de660ba
.
This commit is contained in:
parent
fd39b21b12
commit
19408b26bf
|
@ -356,9 +356,7 @@ export async function generateManifestBase64(site: Site) {
|
|||
|
||||
async function fetchIconPng(iconUrl: string) {
|
||||
return await fetch(
|
||||
iconUrl
|
||||
.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal())
|
||||
.replace(/https/, "http")
|
||||
iconUrl.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal())
|
||||
)
|
||||
.then(res => res.blob())
|
||||
.then(blob => blob.arrayBuffer());
|
||||
|
|
Loading…
Reference in a new issue