about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/client.nim')
-rw-r--r--src/display/client.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display/client.nim b/src/display/client.nim
index ff8aacf3..81d400b1 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -59,6 +59,7 @@ type
     pager {.jsget.}: Pager
     line {.jsget.}: LineEdit
     config {.jsget.}: Config
+    store {.jsget, jsset.}: URL
     jsrt: JSRuntime
     jsctx: JSContext
     fdmap: Table[int, Container]
@@ -549,7 +550,7 @@ proc newClient*(config: Config, dispatcher: Dispatcher): Client =
   result.pager = newPager(config, result.attrs, dispatcher, ctx)
   var global = JS_GetGlobalObject(ctx)
   ctx.registerType(Client, asglobal = true)
-  setOpaque(ctx, global, result)
+  setGlobal(ctx, global, result)
   ctx.setProperty(global, "client", global)
   JS_FreeValue(ctx, global)