about summary refs log tree commit diff stats
path: root/src/html/env.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/html/env.nim
parent07245ef4826298fffc3e34e34a74fdf77c7a4fac (diff)
downloadchawan-ecaf2a633425bd6f02f7857e68410594ae0547a0.tar.gz
fetch: use JSDict
Diffstat (limited to 'src/html/env.nim')
-rw-r--r--src/html/env.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index 144a6a05..94bef626 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -66,7 +66,7 @@ proc addNavigatorModule(ctx: JSContext) =
   ctx.registerType(PluginArray)
   ctx.registerType(MimeTypeArray)
 
-proc fetch[T: Request|string](window: Window, req: T, init = none(JSValue)):
+proc fetch[T: Request|string](window: Window, req: T, init = none(RequestInit)):
     JSResult[FetchPromise] {.jsfunc.} =
   if window.loader.isSome:
     let req = ?newRequest(window.jsctx, req, init)