diff options
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/env.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/html/env.nim b/src/html/env.nim index 6f994369..377c2fbf 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -170,6 +170,9 @@ proc btoa(ctx: JSContext; window: Window; data: JSValue): DOMResult[string] {.jsfunc.} = return btoa(ctx, data) +proc alert(window: Window; s: string) {.jsfunc.} = + window.console.error(s) + proc getComputedStyle(window: Window; element: Element; pseudoElt = none(Element)): JSResult[CSSStyleDeclaration] {.jsfunc.} = #TODO implement this properly |