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

Removed unnecessary check

This commit is contained in:
ferferga 2020-02-06 20:06:57 +01:00
parent 2b4cf6f5b7
commit 417e7dae88

View file

@ -156,12 +156,7 @@ define(["inputManager", "layoutManager"], function (inputManager, layoutManager)
} }
} }
if (isGamepadConnected()) { // No need to check for gamepads manually at load time, the eventhandler will be fired for that
console.log("Gamepad connected! Attaching gamepadtokey.js script");
} else {
console.log("No gamepad connected to this device");
}
// No need to check for gamepads manually at load time, the eventhandler will be fired at load time as well
window.addEventListener("gamepaddisconnected", dettachGamepad); window.addEventListener("gamepaddisconnected", dettachGamepad);
window.addEventListener("gamepadconnected", attachGamepad); window.addEventListener("gamepadconnected", attachGamepad);
require(["components/input/mouseManager"]); require(["components/input/mouseManager"]);