Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Make PhantomJS work w/o erroring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Mar 26, 2013
1 parent e5cfd1a commit 5ae8daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark.js
Expand Up @@ -197,7 +197,7 @@
* @memberOf Benchmark.support
* @type Boolean
*/
support.browser = doc && isHostType(context, 'navigator');
support.browser = doc && isHostType(context, 'navigator') && !isHostType(context, 'phantom');

/**
* Detect if Java is enabled/exposed.
Expand Down

0 comments on commit 5ae8daf

Please sign in to comment.