Improve version node in popup

This commit is contained in:
nobody 2022-07-28 06:12:35 +02:00
parent 8e26a59cb8
commit d21148aab6
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 4 additions and 2 deletions

View File

@ -435,8 +435,10 @@ popup._createVersionNode = function (versionRequested, versionDelivered) {
let version = '';
if (versionRequested === undefined || versionDelivered === undefined) {
version = '';
} else if (versionRequested === versionDelivered && versionDelivered !== 'latest') {
return version;
}
if (versionRequested === versionDelivered && versionDelivered !== 'latest') {
version = `v${versionRequested}`;
} else if (versionRequested === versionDelivered) {
version = `v${versionRequested}`;