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

merge from upstream

This commit is contained in:
vitorsemeano 2019-03-12 21:41:46 +00:00
parent 093a9b1ebd
commit 1cb487b9a3

View file

@ -235,7 +235,7 @@ define(['connectionManager', 'playbackManager', 'events', 'inputManager', 'focus
}
function enableNativeGamepadKeyMapping() {
if (!(!window.navigator || "string" != typeof window.navigator.gamepadInputEmulation)) {
if (window.navigator && "string" == typeof window.navigator.gamepadInputEmulation) {
window.navigator.gamepadInputEmulation = "keyboard";
return true;
}