diff options
author | bptato <nincsnevem662@gmail.com> | 2024-08-09 00:29:31 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-08-09 00:29:31 +0200 |
commit | b6b998bf608f2f82d5b639455b2fd6224b0919e2 (patch) | |
tree | 8dd1e2869b64ac584700b6de034db5c667200954 /src/server | |
parent | 4c64687290c908cd791a058dede9bd4f2a1c7757 (diff) | |
download | chawan-b6b998bf608f2f82d5b639455b2fd6224b0919e2.tar.gz |
Update monoucha
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/buffer.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim index a1e273cc..7abac9e1 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -1426,10 +1426,11 @@ proc evalJSURL(buffer: Buffer; url: URL): Opt[string] = return err() # error if JS_IsUndefined(ret): return err() # no need to navigate - let s = ?fromJS[string](ctx, ret) + var res: string + ?ctx.fromJS(ret, res) JS_FreeValue(ctx, ret) # Navigate to result. - return ok(s) + return ok(res) proc click(buffer: Buffer; anchor: HTMLAnchorElement): ClickResult = var repaint = buffer.restoreFocus() |