Skip to content

Commit 6a53438

Browse files
authored
Fix document visibilityState functionality (#86)
1 parent 2fa845e commit 6a53438

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ New features:
1010
- Added `length`, `scrollRestoration` and `setScrollRestoration` for `History` (#87 by @acple)
1111

1212
Bugfixes:
13+
- Fixed `visibilityState` for `HTMLDocument` (#86 by @cwinebr)
1314

1415
Other improvements:
1516

src/Web/HTML/HTMLDocument.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function _readyState(doc) {
1515
}
1616

1717
export function _visibilityState(doc) {
18-
return doc.readyState;
18+
return doc.visibilityState;
1919
}
2020

2121
export function _activeElement(doc) {

0 commit comments

Comments
 (0)