mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove IE/Edge-specific case in app visibility handler
As Edge 12+ supports the Visibility API, we don't need the MS-specific API handling
This commit is contained in:
parent
93b1dd53b5
commit
84b69fa0e7
1 changed files with 1 additions and 4 deletions
|
@ -431,9 +431,6 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f
|
|||
if (typeof document.hidden !== "undefined") { /* eslint-disable-line compat/compat */
|
||||
hidden = "hidden";
|
||||
visibilityChange = "visibilitychange";
|
||||
} else if (typeof document.msHidden !== "undefined") {
|
||||
hidden = "msHidden";
|
||||
visibilityChange = "msvisibilitychange";
|
||||
} else if (typeof document.webkitHidden !== "undefined") {
|
||||
hidden = "webkitHidden";
|
||||
visibilityChange = "webkitvisibilitychange";
|
||||
|
@ -447,7 +444,7 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f
|
|||
} else {
|
||||
onAppVisible();
|
||||
}
|
||||
});
|
||||
}, false);
|
||||
}
|
||||
|
||||
if (self.addEventListener) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue