1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove self.document from page visibility event

This commit is contained in:
MrTimscampi 2020-04-10 21:42:27 +02:00
parent 84b69fa0e7
commit 0b061fb1ff

View file

@ -436,7 +436,6 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f
visibilityChange = "webkitvisibilitychange";
}
if (self.document) {
document.addEventListener(visibilityChange, function () {
/* eslint-disable-next-line compat/compat */
if (document[hidden]) {
@ -445,7 +444,6 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f
onAppVisible();
}
}, false);
}
if (self.addEventListener) {
self.addEventListener("focus", onAppVisible);