From 0ebe82c629925a711974c3765051fde4448d0c91 Mon Sep 17 00:00:00 2001 From: testman Date: Mon, 25 Mar 2024 06:06:41 +0900 Subject: [PATCH] =?UTF-8?q?globalFetch=20=ED=95=A8=EC=88=98=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EA=B0=9C=EC=84=A0=20=20=EB=B0=8F=20=EB=94=94=EB=B2=84?= =?UTF-8?q?=EA=B9=85=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ts/storage/globalApi.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ts/storage/globalApi.ts b/src/ts/storage/globalApi.ts index 8575670f..d256df69 100644 --- a/src/ts/storage/globalApi.ts +++ b/src/ts/storage/globalApi.ts @@ -555,7 +555,6 @@ export async function globalFetch(url: string, arg: GlobalFetchArgs = {}): Promi return { ok: false, headers: {}, data: 'You are trying local request on web version. This is not allowed due to browser security policy. Use the desktop version instead, or use a tunneling service like ngrok and set the CORS to allow all.' } // Simplify the globalFetch function: Detach built-in functions - const fetchData = async (url, arg) => { if (forcePlainFetch) { return await fetchWithPlainFetch(url, arg); } @@ -566,7 +565,6 @@ export async function globalFetch(url: string, arg: GlobalFetchArgs = {}): Promi return await fetchWithCapacitor(url, arg); } return await fetchWithProxy(url, arg); - }; } catch (error) { console.error(error);