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 eba067a8..b3c14fc5 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -110,7 +110,7 @@ proc addScripting*(window: Window, selector: Selector[int]) = ) var global = JS_GetGlobalObject(ctx) ctx.registerType(Window, asglobal = true) - ctx.setOpaque(global, window) + ctx.setGlobal(global, window) ctx.defineProperty(global, "window", global) JS_FreeValue(ctx, global) ctx.addDOMExceptionModule() |