Make platform check work on node-webkit

print-window-tiddler
Jermolene 2014-12-23 08:20:22 +00:00
rodzic e56e2a2450
commit e41285ae56
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 {