diff options
Diffstat (limited to 'src/html/env.nim')
-rw-r--r-- | src/html/env.nim | 2 |
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) |