mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Fix for Firefox
This commit is contained in:
parent
1f7b41e303
commit
3310d5b239
@ -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…
Reference in New Issue
Block a user