mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 14:53:15 +00:00
Make platform check work on node-webkit
This commit is contained in:
parent
e56e2a2450
commit
e41285ae56
|
@ -441,7 +441,7 @@ exports.escapeRegExp = function(s) {
|
||||||
|
|
||||||
exports.nextTick = function(fn) {
|
exports.nextTick = function(fn) {
|
||||||
/*global window: false */
|
/*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
|
// Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts
|
||||||
window.setTimeout(fn,4);
|
window.setTimeout(fn,4);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user