Skip to content

Commit

Permalink
fix: Only launch browser once
Browse files Browse the repository at this point in the history
Closes #25
  • Loading branch information
4kochi committed Nov 2, 2017
1 parent 52391e5 commit 94c9766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var DetectBrowsers = function (config, logger) {
// (the launcher would be found, but would fail to run)
var useBrowser = browser.name !== 'Edge' || process.platform === 'win32' && /^1\d/.test(os.release());

if (browserLocated && useBrowser) {
if (browserLocated && useBrowser && result.indexOf(browser.name) < 0) {
// add browser when found in file system or when env variable is set
result.push(browser.name);

Expand Down

0 comments on commit 94c9766

Please sign in to comment.