diff options
author | bptato <nincsnevem662@gmail.com> | 2023-11-15 21:35:21 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-11-15 21:35:52 +0100 |
commit | 5171f62993d7ced5d598de24ba8c600a3f62f2ce (patch) | |
tree | ca8d56526c79eb351cd4950810af2a359303cee2 /src/html/env.nim | |
parent | d1397029d83cb590415d45e076241ff9b1bff270 (diff) | |
download | chawan-5171f62993d7ced5d598de24ba8c600a3f62f2ce.tar.gz |
env: add window.frames, window.self
both just return identity
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) |