check type of controlScheme

This commit is contained in:
Alexey Nurgaliev 2023-08-05 22:43:46 +03:00
parent 97e9e52d34
commit fcd603ce27
2 changed files with 2 additions and 2 deletions

View file

@ -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);

File diff suppressed because one or more lines are too long