1
0
Fork 0
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:
MrTimscampi 2020-04-09 19:20:18 +02:00
parent e338c1e936
commit 56ff47658b

View file

@ -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();