Check for 1.x version

This commit is contained in:
Gerrit Grunwald 2021-03-16 18:01:38 +01:00
commit 736f681405
2 changed files with 6 additions and 2 deletions

View file

@ -254,7 +254,11 @@ async function getDownloadInfo(
url += '&architecture=' + architecture;
url += '&operating_system=' + operatingSystem;
url += '&archive_type=' + archiveType;
if (version.includes('x') || version.includes('ea')) {
if (
version.includes('x') ||
version.includes('ea') ||
version.startsWith('1.')
) {
url += '&latest=overall';
}