1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Make platform check work on node-webkit

This commit is contained in:
Jermolene 2014-12-23 08:20:22 +00:00
parent e56e2a2450
commit e41285ae56

View File

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