diff options
author | bptato <nincsnevem662@gmail.com> | 2023-05-27 17:10:31 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-01 13:01:40 +0200 |
commit | e38f831d4d369eacc7e721f4f82e4124003cc61e (patch) | |
tree | 86ed57b658cdff554dd42acff469ab3ec7466be6 /src/html | |
parent | 2c4f1b5a9a879bbefdfa6f9cf8bb72c12cd486d7 (diff) | |
download | chawan-e38f831d4d369eacc7e721f4f82e4124003cc61e.tar.gz |
Add module loading to client
Files only, for now.
Diffstat (limited to 'src/html')
-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 bda8c2c2..544f5083 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -95,7 +95,7 @@ proc addScripting*(window: Window, selector: Selector[int]) = var global = JS_GetGlobalObject(ctx) ctx.registerType(Window, asglobal = true) ctx.setOpaque(global, window) - ctx.setProperty(global, "window", global) + ctx.defineProperty(global, "window", global) JS_FreeValue(ctx, global) ctx.addconsoleModule() ctx.addNavigatorModule() |