mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix for Firefox
This commit is contained in:
parent
1f7b41e303
commit
3310d5b239
1 changed files with 2 additions and 2 deletions
|
@ -365,7 +365,7 @@ require(['apphost'], function (appHost) {
|
|||
var gamepads = navigator.getGamepads();
|
||||
for (var i = 0, len = gamepads.length; i < len; i++) {
|
||||
var gamepad = gamepads[i];
|
||||
if (gamepad) {
|
||||
if (gamepad && gamepad.connected) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -388,7 +388,7 @@ require(['apphost'], function (appHost) {
|
|||
}
|
||||
}
|
||||
|
||||
// Event Listeners for any change in gamepads' state.
|
||||
// Event listeners for any change in gamepads' state.
|
||||
window.addEventListener("gamepaddisconnected", dettachGamepad);
|
||||
window.addEventListener("gamepadconnected", attachGamepad);
|
||||
window.addEventListener("blur", dettachGamepad);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue