From 5171f62993d7ced5d598de24ba8c600a3f62f2ce Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 15 Nov 2023 21:35:21 +0100 Subject: env: add window.frames, window.self both just return identity --- src/html/env.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/html/env.nim') 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) -- cgit 1.4.1-2-gfad0