From b6b998bf608f2f82d5b639455b2fd6224b0919e2 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 9 Aug 2024 00:29:31 +0200 Subject: Update monoucha --- src/server/buffer.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server') 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() -- cgit 1.4.1-2-gfad0