Does the stdlib have any way to access `document.v...
# javascript
e
Does the stdlib have any way to access
document.visibilityState
?
a
In the stdlib, I see that
window
should have this property, but not
document
. But,
kotlin-wrappers
[does](https://github.com/JetBrains/kotlin-wrappers/blob/650c3828d4a0e34f15b6a1cee10872af[…]4dc24f0/kotlin-browser/src/jsMain/generated/web/dom/Document.kt). So you can add it into your dependency and consume the modern DOM API
😉 1
t
All stable browser API available in
kotlin-browser