Skip to content

Commit 16909c7

Browse files
committed
if version name doesn't have /, then just use the full name
1 parent 782044e commit 16909c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/core/engine.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ class Engine {
222222
if (err) {
223223
return cb({name: "Ethereum node (version unknown)", status: 'on'});
224224
}
225+
if (version.indexOf("/") < 0) {
226+
return cb({name: version, status: 'on'});
227+
}
225228
let nodeName = version.split("/")[0];
226229
let versionNumber = version.split("/")[1].split("-")[0];
227230
let name = nodeName + " " + versionNumber + " (Ethereum)";

0 commit comments

Comments
 (0)