about summary refs log tree commit diff stats
path: root/src/html/env.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/env.nim')
-rw-r--r--src/html/env.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index 8b558b8a..ca7e497d 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -6,6 +6,7 @@ import html/htmlparser
 import io/loader
 import io/promise
 import io/request
+import io/window
 import js/intl
 import js/javascript
 import js/timeout
@@ -124,8 +125,9 @@ proc runJSJobs*(window: Window) =
   window.jsrt.runJSJobs(window.console.err)
 
 proc newWindow*(scripting: bool, selector: Selector[int],
-    loader = none(FileLoader)): Window =
+    attrs: WindowAttributes, loader = none(FileLoader)): Window =
   let window = Window(
+    attrs: attrs,
     console: console(err: newFileStream(stderr)),
     navigator: Navigator(),
     loader: loader,