From 505f11bc86eab7632e932a4aa3c0e881dac92c5f Mon Sep 17 00:00:00 2001 From: incredibleIdea Date: Sat, 5 Jul 2025 11:26:43 +0800 Subject: [PATCH] Style: replace some string concatenation with template literal (#1040) --- data/src/emulator.js | 2 +- index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/src/emulator.js b/data/src/emulator.js index ea85ef2..989430b 100644 --- a/data/src/emulator.js +++ b/data/src/emulator.js @@ -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`); } }) } diff --git a/index.html b/index.html index 1e048ad..d112a18 100644 --- a/index.html +++ b/index.html @@ -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) => {