From d3097067f34387503f4ae7bcecd2fd390e9cc32f Mon Sep 17 00:00:00 2001 From: Mohammad Zaid <64780229+them7d@users.noreply.github.com> Date: Sun, 13 Sep 2026 15:47:40 +0300 Subject: [PATCH] fix(tauri-fetch): correctly extract URL from Request input Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/app/tauri/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tauri/http.ts b/src/app/tauri/http.ts index 129d8b9c6..5f59729f3 100644 --- a/src/app/tauri/http.ts +++ b/src/app/tauri/http.ts @@ -81,7 +81,7 @@ export async function tauriFetch( maxResponseBytes?: number, timeoutMs?: number ): Promise { - const parsedURL = new URL(typeof input === 'object' ? (input as Request).url : input) + const parsedURL = new URL(input instanceof Request ? input.url : input) const isIpcURL = parsedURL.protocol === 'ipc:' || ((parsedURL.protocol === 'http:' || parsedURL.protocol === 'https:') &&