diff options
-rw-r--r-- | netsniff.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netsniff.js b/netsniff.js index b702543..6884452 100644 --- a/netsniff.js +++ b/netsniff.js @@ -1,3 +1,7 @@ +// from http://stackoverflow.com/questions/16846506/phantomjs-timeout +// stop after 20 sec ( add this before you request your webpage ) +setTimeout(function() {phantom.exit();},20000); + if (!Date.prototype.toISOString) { Date.prototype.toISOString = function () { function pad(n) { return n < 10 ? '0' + n : n; } |