Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 6acb978

Browse files
d3x0rjdalton
authored andcommitted
test name if it's still null, default node.js (#130)
The new test for versions for 'nw' doesn't have a default case if versions is an object, but does not have 'nw'
1 parent dbddee1 commit 6acb978

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,8 @@
768768
name = 'NW.js';
769769
version = data.versions.nw;
770770
}
771-
} else {
771+
}
772+
if (!name) {
772773
name = 'Node.js';
773774
arch = data.arch;
774775
os = data.platform;

0 commit comments

Comments
 (0)