about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-09 12:18:45 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-09 12:18:45 +0200
commitecaf2a633425bd6f02f7857e68410594ae0547a0 (patch)
tree46aeb17b7e0f55f90f2e10b69e7b63a9a2b5a928 /src/display/client.nim
parent07245ef4826298fffc3e34e34a74fdf77c7a4fac (diff)
downloadchawan-ecaf2a633425bd6f02f7857e68410594ae0547a0.tar.gz
fetch: use JSDict
Diffstat (limited to 'src/display/client.nim')
-rw-r--r--src/display/client.nim4
1 files changed, 2 insertions, 2 deletions
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))