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:') &&