beta.19: fix tuple label mismatch in APIFetchDelegate

This commit is contained in:
SuperDooper
2026-05-11 12:22:13 +02:00
parent f48b53fd8e
commit dc2a8e2307
+1 -1
View File
@@ -84,7 +84,7 @@ class UsageViewModel: ObservableObject {
// Fetches an API path by navigating the WebView to the URL and reading the response.
// Navigation lets WebKit send full browser headers and cookies automatically
// more reliable than callAsyncJavaScript fetch, which bypasses SPA auth interceptors.
private func webViewFetch(_ path: String) async throws -> (statusCode: Int, body: String) {
private func webViewFetch(_ path: String) async throws -> (Int, String) {
guard let wv = apiWebView else { throw AppError.detail("no api webview") }
return try await withCheckedThrowingContinuation { cont in
let delegate = APIFetchDelegate(continuation: cont)