mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
check type of controlScheme
This commit is contained in:
parent
97e9e52d34
commit
fcd603ce27
2 changed files with 2 additions and 2 deletions
|
@ -1750,7 +1750,7 @@ class EmulatorJS {
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
getControlScheme() {
|
getControlScheme() {
|
||||||
if (this.config.controlScheme) {
|
if (this.config.controlScheme && typeof this.config.controlScheme === 'string') {
|
||||||
return this.config.controlScheme;
|
return this.config.controlScheme;
|
||||||
} else {
|
} else {
|
||||||
return this.getCore(true);
|
return this.getCore(true);
|
||||||
|
|
2
data/emulator.min.js
vendored
2
data/emulator.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue