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

Update src/scripts/site.js

well the tool can't make all the coding, am i right?

Co-Authored-By: vitorsemeano <vitorsemeano@gmail.com>
This commit is contained in:
Claus Vium 2019-03-04 20:43:37 +00:00 committed by GitHub
parent 1dd3096f37
commit 6a15acb310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1194,7 +1194,7 @@ var AppInfo = {};
}
function enableNativeGamepadKeyMapping() {
if (!(!window.navigator || "string" != typeof window.navigator.gamepadInputEmulation)) {
if (window.navigator && "string" == typeof window.navigator.gamepadInputEmulation) {
window.navigator.gamepadInputEmulation = "keyboard";
return true;
}