Improve version node in popup
This commit is contained in:
parent
8e26a59cb8
commit
d21148aab6
|
@ -435,8 +435,10 @@ popup._createVersionNode = function (versionRequested, versionDelivered) {
|
||||||
let version = '';
|
let version = '';
|
||||||
|
|
||||||
if (versionRequested === undefined || versionDelivered === undefined) {
|
if (versionRequested === undefined || versionDelivered === undefined) {
|
||||||
version = '';
|
return version;
|
||||||
} else if (versionRequested === versionDelivered && versionDelivered !== 'latest') {
|
}
|
||||||
|
|
||||||
|
if (versionRequested === versionDelivered && versionDelivered !== 'latest') {
|
||||||
version = `v${versionRequested}`;
|
version = `v${versionRequested}`;
|
||||||
} else if (versionRequested === versionDelivered) {
|
} else if (versionRequested === versionDelivered) {
|
||||||
version = `v${versionRequested}`;
|
version = `v${versionRequested}`;
|
||||||
|
|
Loading…
Reference in New Issue