mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Remove usage of replaceAll
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled
This commit is contained in:
parent
605a271299
commit
f7fa56757b
1 changed files with 2 additions and 2 deletions
|
@ -596,7 +596,7 @@ class EmulatorJS {
|
|||
}
|
||||
}
|
||||
versionAsInt(ver) {
|
||||
return parseInt(ver.replaceAll(".", ""));
|
||||
return parseInt(ver.split(".").join(""));
|
||||
}
|
||||
checkCoreCompatibility(version) {
|
||||
// Leave commented until next release - this is ready to go.
|
||||
|
@ -3447,7 +3447,7 @@ class EmulatorJS {
|
|||
|
||||
const leftHandedMode = false;
|
||||
const blockCSS = 'height:31px;text-align:center;border:1px solid #ccc;border-radius:5px;line-height:31px;';
|
||||
const controlSchemeCls = `cs_${this.getControlScheme()}`.replaceAll(/\s/g, '_');
|
||||
const controlSchemeCls = `cs_${this.getControlScheme()}`.split(/\s/g).join('_');
|
||||
|
||||
for (let i=0; i<info.length; i++) {
|
||||
if (info[i].type !== 'button') continue;
|
||||
|
|
Loading…
Reference in a new issue