about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/local')
-rw-r--r--src/local/client.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim
index 3a80b4bf..baea712f 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -797,8 +797,9 @@ proc sleep(client: Client, millis: int) {.jsfunc.} =
 proc atob(client: Client, data: string): DOMResult[NarrowString] {.jsfunc.} =
   return atob(data)
 
-proc btoa(client: Client, data: JSString): DOMResult[string] {.jsfunc.} =
-  return btoa(data)
+proc btoa(ctx: JSContext, client: Client, data: JSValue): DOMResult[string]
+    {.jsfunc.} =
+  return btoa(ctx, data)
 
 func line(client: Client): LineEdit {.jsfget.} =
   return client.pager.lineedit.get(nil)