mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Style: replace some string concatenation with template literal (#1040)
This commit is contained in:
parent
b0601b6226
commit
505f11bc86
@ -183,7 +183,7 @@ class EmulatorJS {
|
||||
response.text().then(body => {
|
||||
let version = JSON.parse(body);
|
||||
if (this.versionAsInt(this.ejs_version) < this.versionAsInt(version.version)) {
|
||||
console.log("Using EmulatorJS version " + this.ejs_version + " but the newest version is " + version.current_version + "\nopen https://github.com/EmulatorJS/EmulatorJS to update");
|
||||
console.log(`Using EmulatorJS version ${this.ejs_version} but the newest version is ${version.current_version}\nopen https://github.com/EmulatorJS/EmulatorJS to update`);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -133,12 +133,12 @@
|
||||
}
|
||||
|
||||
if (urlParams.get('rom')) {
|
||||
console.log("Loading ROM from URL: roms/" + urlParams.get('rom'));
|
||||
console.log(`Loading ROM from URL: roms/${urlParams.get('rom')}`);
|
||||
run(false, urlParams.get('rom'));
|
||||
}
|
||||
|
||||
async function run(upload, file) {
|
||||
const url = upload ? input.files[0] : "roms/" + file;
|
||||
const url = upload ? input.files[0] : `roms/${file}`;
|
||||
const parts = upload ? input.files[0].name.split(".") : file.split(".");
|
||||
|
||||
const core = await (async (ext) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user