mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-09 14:26:07 +00:00
Make platform check work on node-webkit
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user