about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)