diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-02 23:41:02 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-02 23:41:11 +0200 |
commit | 3c5aa0645bcc1d2481cdb4b03001afd96fd318e0 (patch) | |
tree | f1ba22a1d7d93a6db28e60e56e04602d023e5f41 /src/html/env.nim | |
parent | 31cca81850bfe43771767dbffc2879a5061b84cd (diff) | |
download | chawan-3c5aa0645bcc1d2481cdb4b03001afd96fd318e0.tar.gz |
Add XHR/Event stubs
Diffstat (limited to 'src/html/env.nim')
-rw-r--r-- | src/html/env.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/html/env.nim b/src/html/env.nim index 174f0a12..06289c4e 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -2,6 +2,7 @@ import selectors import streams import html/dom +import html/event import html/htmlparser import io/headers import io/loader @@ -15,7 +16,8 @@ import js/javascript import js/timeout import types/blob import types/url -import xhr/formdata as formdata_impl +import xhr/formdata +import xhr/xmlhttprequest # NavigatorID proc appCodeName(navigator: Navigator): string {.jsfget.} = "Mozilla" @@ -118,12 +120,14 @@ proc addScripting*(window: Window, selector: Selector[int]) = ctx.addDOMExceptionModule() ctx.addconsoleModule() ctx.addNavigatorModule() + ctx.addEventModule() ctx.addDOMModule() ctx.addURLModule() ctx.addHTMLModule() ctx.addIntlModule() ctx.addBlobModule() ctx.addFormDataModule() + ctx.addXMLHttpRequestModule() ctx.addHeadersModule() ctx.addRequestModule() ctx.addResponseModule() |