Skip to content

Commit

Permalink
Exclude phantomjs
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Aug 23, 2020
1 parent d3fe28a commit 6542833
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class SystemProvider extends Provider {

// TODO (browser-launcher): expose release channel, arch, etc
const manifests = launch.browsers.map(function ({ name, version, command }) {
if (name === 'phantomjs') return

const title = `System ${names.title(name) || name} ${version}`
const options = { headless }
const supports = { headless }
Expand All @@ -54,7 +56,7 @@ class SystemProvider extends Provider {
return { name, version, title, command, options, supports }
})

callback(null, manifests)
callback(null, manifests.filter(Boolean))
})
}

Expand Down

0 comments on commit 6542833

Please sign in to comment.