mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
if version name doesn't have /, then just use the full name
This commit is contained in:
parent
782044ef7c
commit
16909c7f1a
@ -222,6 +222,9 @@ class Engine {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return cb({name: "Ethereum node (version unknown)", status: 'on'});
|
return cb({name: "Ethereum node (version unknown)", status: 'on'});
|
||||||
}
|
}
|
||||||
|
if (version.indexOf("/") < 0) {
|
||||||
|
return cb({name: version, status: 'on'});
|
||||||
|
}
|
||||||
let nodeName = version.split("/")[0];
|
let nodeName = version.split("/")[0];
|
||||||
let versionNumber = version.split("/")[1].split("-")[0];
|
let versionNumber = version.split("/")[1].split("-")[0];
|
||||||
let name = nodeName + " " + versionNumber + " (Ethereum)";
|
let name = nodeName + " " + versionNumber + " (Ethereum)";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user