mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Maintain backwards compatibility with version.json
This commit is contained in:
parent
2630f81899
commit
e486e70181
2 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{ "current_version": "4.0.12" }
|
{ "readme": "CURRENT_VERSION IS NO LONGER UPDATED. USE VERION", "current_version": 9999, "version": "4.0.12" }
|
||||||
|
|
Loading…
Reference in a new issue