From ecaf2a633425bd6f02f7857e68410594ae0547a0 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 9 Sep 2023 12:18:45 +0200 Subject: fetch: use JSDict --- src/display/client.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/display/client.nim') diff --git a/src/display/client.nim b/src/display/client.nim index c8a4ab1f..c621580a 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -109,8 +109,8 @@ proc finalize(client: Client) {.jsfin.} = proc doRequest(client: Client, req: Request): Response {.jsfunc.} = return client.loader.doRequest(req) -proc fetch[T: Request|string](client: Client, req: T, init = none(JSValue)): - JSResult[FetchPromise] {.jsfunc.} = +proc fetch[T: Request|string](client: Client, req: T, + init = none(RequestInit)): JSResult[FetchPromise] {.jsfunc.} = let req = ?newRequest(client.jsctx, req, init) return ok(client.loader.fetch(req)) -- cgit 1.4.1-2-gfad0