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/html/env.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html/env.nim') 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) -- cgit 1.4.1-2-gfad0