mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lint
This commit is contained in:
parent
ab0a9ef065
commit
2b4cf6f5b7
1 changed files with 3 additions and 2 deletions
|
@ -128,7 +128,8 @@ define(["inputManager", "layoutManager"], function (inputManager, layoutManager)
|
|||
|
||||
function isGamepadConnected() {
|
||||
var gamepads = navigator.getGamepads();
|
||||
var i, len;
|
||||
var i;
|
||||
var len;
|
||||
for (i = 0, len = gamepads.length; i < len; i++) {
|
||||
var gamepad = gamepads[i];
|
||||
if (gamepad) {
|
||||
|
@ -154,7 +155,7 @@ define(["inputManager", "layoutManager"], function (inputManager, layoutManager)
|
|||
console.log("Gamepad disconnected! There are gamepads still connected.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (isGamepadConnected()) {
|
||||
console.log("Gamepad connected! Attaching gamepadtokey.js script");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue