diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-09 12:18:45 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-09 12:18:45 +0200 |
commit | ecaf2a633425bd6f02f7857e68410594ae0547a0 (patch) | |
tree | 46aeb17b7e0f55f90f2e10b69e7b63a9a2b5a928 /src/display/client.nim | |
parent | 07245ef4826298fffc3e34e34a74fdf77c7a4fac (diff) | |
download | chawan-ecaf2a633425bd6f02f7857e68410594ae0547a0.tar.gz |
fetch: use JSDict
Diffstat (limited to 'src/display/client.nim')
-rw-r--r-- | src/display/client.nim | 4 |
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)) |