Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes browser compatibility

  • Loading branch information...
commit 89b340c6229b3e71d9f22901e8dad4b898beceab 1 parent c108d58
@manuelstofer authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/trickle.js
View
7 lib/trickle.js
@@ -37,7 +37,12 @@
_runNextTick: function () {
var self = this;
- process.nextTick(function () { self._run(); });
+ var run = function () { self._run(); };
+ if (typeof module != 'undefined') {
+ process.nextTick(run);
+ } else {
+ setTimeout(run, 0);
+ }
},
_run: function () {
Please sign in to comment.
Something went wrong with that request. Please try again.