diff options
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)) |