Maintain backwards compatibility with version.json

This commit is contained in:
Ethan O'Brien 2024-08-08 09:51:14 -05:00
parent 2630f81899
commit e486e70181
2 changed files with 3 additions and 3 deletions

View file

@ -210,8 +210,8 @@ class EmulatorJS {
if (response.ok) { if (response.ok) {
response.text().then(body => { response.text().then(body => {
let version = JSON.parse(body); let version = JSON.parse(body);
if (this.versionAsInt(this.ejs_version) < this.versionAsInt(version.current_version)) { if (this.versionAsInt(this.ejs_version) < this.versionAsInt(version.version)) {
console.log('Using EmulatorJS version ' + this.versionAsInt(this.ejs_version) + ' but the newest version is ' + this.versionAsInt(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

@ -1 +1 @@
{ "current_version": "4.0.12" } { "readme": "CURRENT_VERSION IS NO LONGER UPDATED. USE VERION", "current_version": 9999, "version": "4.0.12" }