diff options
author | bptato <nincsnevem662@gmail.com> | 2022-07-18 19:43:48 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-07-18 19:43:48 +0200 |
commit | 16d9510050588f84a6b75298280ed9e177cd791c (patch) | |
tree | 5b3a1ba83a697e68e2720902fa4f0d46b00c0788 /src | |
parent | 94b0da6e67261331779a6bb2414ffb481cd91f35 (diff) | |
download | chawan-16d9510050588f84a6b75298280ed9e177cd791c.tar.gz |
Fix console.log
Diffstat (limited to 'src')
-rw-r--r-- | src/client.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.nim b/src/client.nim index 42a60d60..8eb63b33 100644 --- a/src/client.nim +++ b/src/client.nim @@ -62,7 +62,7 @@ proc newClient*(): Client = let global = ctx.getGlobalObject() let console = newJSObject(result.jsctx) console.setFunctionProperty("log", js_console_log) - console.setProperty("console", console) + global.setProperty("console", console) free(global) proc loadError(s: string) = |