Use latestRelease field from list.json

pull/1/head
Alex Beregszaszi 8 years ago
parent ed0741383c
commit 399481f6d7
  1. 10
      src/app.js

@ -580,15 +580,7 @@ var run = function () {
$('#versionSelector').append(new Option('latest local version', 'builtin')); $('#versionSelector').append(new Option('latest local version', 'builtin'));
// find latest release // find latest release
var selectedVersion = null; var selectedVersion = data.releases[data.latestRelease];
for (var release in data.releases) {
if (selectedVersion === null || semver.gt(release, selectedVersion)) {
selectedVersion = release;
}
}
if (selectedVersion !== null) {
selectedVersion = data.releases[selectedVersion];
}
// override with the requested version // override with the requested version
if (queryParams.get().version) { if (queryParams.get().version) {

Loading…
Cancel
Save