mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Correct document.visibilityState
This commit is contained in:
parent
e338c1e936
commit
56ff47658b
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f
|
|||
if (doc) {
|
||||
doc.addEventListener(visibilityChange, function () {
|
||||
/* eslint-disable-next-line compat/compat */
|
||||
if (document[visibilityState]) {
|
||||
if (document.visibilityState) {
|
||||
onAppHidden();
|
||||
} else {
|
||||
onAppVisible();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue