diff options
Diffstat (limited to 'src/html/env.nim')
-rw-r--r-- | src/html/env.nim | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/html/env.nim b/src/html/env.nim index 9d0516fe..4c8d4f0c 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -101,15 +101,24 @@ proc setLocation(window: Window, s: string): Err[JSError] {.jsfset: "location".} = window.document.setLocation(s) -proc getWindow(window: Window): Window {.jsuffget: "window".} = +func getWindow(window: Window): Window {.jsuffget: "window".} = return window -proc getSelf(window: Window): Window {.jsfget: "self".} = +#TODO [Replaceable] +func getSelf(window: Window): Window {.jsfget: "self".} = return window -proc getFrames(window: Window): Window {.jsfget: "frames".} = +#TODO [Replaceable] +func getFrames(window: Window): Window {.jsfget: "frames".} = return window +func getTop(window: Window): Window {.jsuffget: "top".} = + return window #TODO frames? + +#TODO [Replaceable] +func getParent(window: Window): Window {.jsfget: "parent".} = + return window #TODO frames? + proc atob(window: Window, data: string): DOMResult[NarrowString] {.jsfunc.} = return atob(data) |