Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Benchmark.js to work in PhantomJS.

  • Loading branch information...
commit c0cd2567ee9cede28b21d9ff38db733e0cbcd61c 1 parent 58c68b4
@jdalton jdalton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  vendor/benchmark.js/benchmark.js
View
2  vendor/benchmark.js/benchmark.js
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.