From a67a077024ed229d26486c2ff486ab2b98a905a3 Mon Sep 17 00:00:00 2001 From: Sergey Stepanov Date: Mon, 16 Sep 2024 21:45:06 +0300 Subject: [PATCH] Fix env functions --- web/js/input/joystick.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/js/input/joystick.js b/web/js/input/joystick.js index 4faa30ce..51e22e2a 100644 --- a/web/js/input/joystick.js +++ b/web/js/input/joystick.js @@ -98,8 +98,8 @@ const onGamepadConnected = (e) => { // Ref: https://github.com/giongto35/cloud-game/issues/14 // get mapping first (default KeyMap2) - const os = env.getOs(); - const browser = env.getBrowser(); + const os = env.getOs; + const browser = env.getBrowser; if (os === platform.android) { // default of android is KeyMap1