Skip to content

Commit

Permalink
Switch isNode check to avoid problem with webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
briancavalier committed Apr 26, 2015
1 parent 3f030f9 commit 5c84571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ define(function(require) {
};

function isNode () {
return typeof process !== 'undefined' && process !== null &&
typeof process.nextTick === 'function';
return typeof process !== 'undefined' &&
Object.prototype.toString.call(process) === '[object process]';
}

function hasMutationObserver () {
Expand Down

0 comments on commit 5c84571

Please sign in to comment.