Skip to content

Commit

Permalink
fix: Filter out FirefoxAurora and FirefoxNightly on linux
Browse files Browse the repository at this point in the history
Closes #25
  • Loading branch information
4kochi committed Nov 2, 2017
1 parent 94c9766 commit 723454a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ var DetectBrowsers = function (config, logger) {
browserNames = Object.keys(browsers),
result = [];

// only use one firefox version on linux
if (process.platform === 'linux') {
browserNames = browserNames.filter(function (name) {
return name !== 'firefoxAurora' && name !== 'firefoxNightly'
});
}

// iterate over all browsers in the browsers folder
for (i = 0, length = browserNames.length; i < length; i++) {
var browser = browsers[browserNames[i]],
Expand Down

0 comments on commit 723454a

Please sign in to comment.