summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortandy1000 <TANDY1000@COCK.LI>2022-05-24 16:37:39 +0100
committerGitHub <noreply@github.com>2022-05-24 17:37:39 +0200
commitec0cec3170a3f175b9e02ca98e82c963fe64df4f (patch)
tree6b68987d822a23bfd19ea3ef84cbccf2146b0791
parentb1b5e3ab10749851e942d624ee85188d8b06822e (diff)
downloadNim-ec0cec3170a3f175b9e02ca98e82c963fe64df4f.tar.gz
Add `document.hidden` and `document.visibilityState` properties (#19817)
-rw-r--r--lib/js/dom.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index c1a677258..1a62780a7 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -216,11 +216,13 @@ type
     defaultCharset*: cstring
     fgColor*: cstring
     head*: Element
+    hidden*: bool
     lastModified*: cstring
     linkColor*: cstring
     referrer*: cstring
     title*: cstring
     URL*: cstring
+    visibilityState*: cstring
     vlinkColor*: cstring
     anchors*: seq[AnchorElement]
     forms*: seq[FormElement]