From 399481f6d79738a3226fe6118a9e4713cdb8aa34 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 19 Oct 2016 23:22:58 +0100 Subject: [PATCH] Use latestRelease field from list.json --- src/app.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app.js b/src/app.js index 0fe694d55f..7c2ff2261a 100644 --- a/src/app.js +++ b/src/app.js @@ -580,15 +580,7 @@ var run = function () { $('#versionSelector').append(new Option('latest local version', 'builtin')); // find latest release - var selectedVersion = null; - for (var release in data.releases) { - if (selectedVersion === null || semver.gt(release, selectedVersion)) { - selectedVersion = release; - } - } - if (selectedVersion !== null) { - selectedVersion = data.releases[selectedVersion]; - } + var selectedVersion = data.releases[data.latestRelease]; // override with the requested version if (queryParams.get().version) {