about summary refs log tree commit diff stats
path: root/src/html/env.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-10 23:05:35 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-10 23:11:07 +0200
commit15f3a9312d6df039125030f06a3d9940e62c1c8a (patch)
tree4a36eccbaeae19eecc2f4aacb578d4d89c30178e /src/html/env.nim
parent942b39f846cd9e4521a276a65c429f44ac129f2f (diff)
downloadchawan-15f3a9312d6df039125030f06a3d9940e62c1c8a.tar.gz
env: fix getComputedStyle arg2
Diffstat (limited to 'src/html/env.nim')
-rw-r--r--src/html/env.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index 4b7c34df..4d5c3941 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -238,7 +238,7 @@ proc alert(window: Window; s: string) {.jsfunc.} =
   window.console.error(s)
 
 proc getComputedStyle(window: Window; element: Element;
-    pseudoElt = none(Element)): JSResult[CSSStyleDeclaration] {.jsfunc.} =
+    pseudoElt = none(string)): JSResult[CSSStyleDeclaration] {.jsfunc.} =
   #TODO implement this properly
   return ok(element.style)