Style: replace some string concatenation with template literal (#1040)

This commit is contained in:
incredibleIdea 2025-07-05 11:26:43 +08:00 committed by GitHub
parent b0601b6226
commit 505f11bc86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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) => {