From c2e20d1de138e53aaca210f7116d2819d8dee380 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sun, 2 Jul 2023 06:40:08 +0900 Subject: [PATCH] [feat] change proxy url --- src/ts/storage/globalApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/storage/globalApi.ts b/src/ts/storage/globalApi.ts index e9e26715..21491f19 100644 --- a/src/ts/storage/globalApi.ts +++ b/src/ts/storage/globalApi.ts @@ -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,