From 6a15acb310a503cfc4081c56bf6b85b45650659e Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Mon, 4 Mar 2019 20:43:37 +0000 Subject: [PATCH] Update src/scripts/site.js well the tool can't make all the coding, am i right? Co-Authored-By: vitorsemeano --- src/scripts/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/site.js b/src/scripts/site.js index 3773e8896b..69dfe6703d 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -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; }