From e41285ae56216c9fdc08a3f22d940209312a0a93 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 23 Dec 2014 08:20:22 +0000 Subject: [PATCH] Make platform check work on node-webkit --- core/modules/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index 3a5c04ce0..b0aead3e6 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -441,7 +441,7 @@ exports.escapeRegExp = function(s) { exports.nextTick = function(fn) { /*global window: false */ - if(typeof window !== "undefined") { + if(typeof process === "undefined") { // Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts window.setTimeout(fn,4); } else {