diff options
Diffstat (limited to 'src/html/env.nim')
-rw-r--r-- | src/html/env.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/html/env.nim b/src/html/env.nim index 694b09cf..d4adeacf 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -104,6 +104,12 @@ proc setLocation(window: Window, s: string): Err[JSError] proc getWindow(window: Window): Window {.jsuffget: "window".} = return window +proc getSelf(window: Window): Window {.jsfget: "self".} = + return window + +proc getFrames(window: Window): Window {.jsfget: "frames".} = + return window + proc atob(window: Window, data: string): DOMResult[NarrowString] {.jsfunc.} = return atob(data) |