Skip to content

Commit

Permalink
fix: fix Edge filter error for Mac (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Aug 25, 2020
1 parent 1ef184f commit c78209a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/envinfo.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/helpers/browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ module.exports = {
return Promise.resolve('N/A');
}
return edgeVersion.then(v =>
utils.determineFound(
'Edge',
(v || []).filter(x => x !== undefined),
utils.NA
)
utils.determineFound('Edge', Array.isArray(v) ? v.filter(x => x !== undefined) : v, utils.NA)
);
},

Expand Down

0 comments on commit c78209a

Please sign in to comment.