User HTTP instead of HTTPS when fetching icon in docker internal network
This commit is contained in:
parent
26de38a869
commit
498de660ba
1 changed files with 3 additions and 1 deletions
|
@ -356,7 +356,9 @@ 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?:\/\/localhost:\d+/g, getHttpBaseInternal())
|
||||||
|
.replace(/https/, "http")
|
||||||
)
|
)
|
||||||
.then(res => res.blob())
|
.then(res => res.blob())
|
||||||
.then(blob => blob.arrayBuffer());
|
.then(blob => blob.arrayBuffer());
|
||||||
|
|
Loading…
Reference in a new issue