Skip to content

Commit

Permalink
check for process.hrtime, closes #1495
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 12, 2017
1 parent c5886a4 commit 3353338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/flushTime.js
Expand Up @@ -4,7 +4,7 @@ const map = new Map;
let timeStartHelper;
let timeEndHelper;

if ( typeof process === 'undefined' ) {
if ( typeof process === 'undefined' || typeof process.hrtime === 'undefined' ) {
timeStartHelper = function timeStartHelper () {
return window.performance.now();
};
Expand Down

0 comments on commit 3353338

Please sign in to comment.