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
1 changed files with 1 additions and 3 deletions
|
@ -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