From 5c84571ec13698b1c96f7b599afa2ff506529e75 Mon Sep 17 00:00:00 2001 From: Brian Cavalier Date: Sat, 25 Apr 2015 21:54:25 -0400 Subject: [PATCH] Switch isNode check to avoid problem with webpack --- lib/env.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/env.js b/lib/env.js index 088ff1ee..b5e1af7f 100644 --- a/lib/env.js +++ b/lib/env.js @@ -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 () {