[feat] change proxy url

This commit is contained in:
kwaroran
2023-07-02 06:40:08 +09:00
parent 06345a4ad4
commit c2e20d1de1

View File

@@ -624,7 +624,7 @@ export async function globalFetch(url:string, arg:{plainFetchForce?:boolean,body
}
}
else{
const furl = `/proxy?url=${encodeURIComponent(url)}`
const furl = (((!isNodeServer) && (!isTauri)) ? hubURL : '') + `/proxy?url=${encodeURIComponent(url)}`
const da = await fetch(furl, {
body: body,