mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Fix env functions
This commit is contained in:
parent
f1ece58c7b
commit
a67a077024
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue