about summary refs log tree commit diff stats
path: root/src/html/env.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-11-15 21:35:21 +0100
committerbptato <nincsnevem662@gmail.com>2023-11-15 21:35:52 +0100
commit5171f62993d7ced5d598de24ba8c600a3f62f2ce (patch)
treeca8d56526c79eb351cd4950810af2a359303cee2 /src/html/env.nim
parentd1397029d83cb590415d45e076241ff9b1bff270 (diff)
downloadchawan-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.nim6
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)