Skip to content

Commit

Permalink
fix: only load xfvb by default on supported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie committed Mar 26, 2019
1 parent d6df88c commit 52fac06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export default class Browser extends Hookable {
}
}

if (this.config.xvfb !== false) {
if (!this.config.xvfb && this.config.xvfb !== false) {
this.config.xvfb = Xvfb.isSupported()
}

if (this.config.xvfb) {
Xvfb.load(this)
}

Expand Down

0 comments on commit 52fac06

Please sign in to comment.