From 578df008d0e2e6ac2d8ee2ad84ccf640f8d07c55 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 7 Jun 2023 19:30:55 +0200 Subject: Add support for width, height media query --- src/html/env.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/html/env.nim') 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, -- cgit 1.4.1-2-gfad0