Improved setLastVersion

This commit is contained in:
nobody42 2020-03-29 07:24:24 +02:00
parent b600797315
commit fe3bc0274a
No known key found for this signature in database
GPG Key ID: AB5145CF05BFE119
1 changed files with 4 additions and 1 deletions

View File

@ -343,8 +343,11 @@ helpers.formatVersion = function (version) {
helpers.setLastVersion = function (type, version) {
let requestVersion;
if(version != null && version != undefined) {
if(version !== null && version !== undefined) {
requestVersion = version.toString();
} else if (version === null) {
return 'latest';
}
if (type.includes('/angularjs/1.')) {
version = '1.7.9';