|
|
@ -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) { |
|
|
|