aboutsummaryrefslogtreecommitdiffstats
path: root/netsniff.js
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2017-01-14 16:18:35 +0100
committerPetter Reinholdtsen <pere@hungry.com>2017-01-14 16:18:35 +0100
commitfa8ee168ef93d76a45180b67204a251a32b98b90 (patch)
treee639363129ec4591dca59675d6c26b3d0ff0114e /netsniff.js
parent651374dbcbeac08dc4840666d6af5962d9b06234 (diff)
Add use strict code found in https://github.com/ariya/phantomjs/raw/master/examples/netsniff.js.
Diffstat (limited to 'netsniff.js')
-rw-r--r--netsniff.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/netsniff.js b/netsniff.js
index 78dcdf2..37d109f 100644
--- a/netsniff.js
+++ b/netsniff.js
@@ -1,4 +1,6 @@
// from http://stackoverflow.com/questions/16846506/phantomjs-timeout
+"use strict";
+
// stop after 20 sec ( add this before you request your webpage )
setTimeout(function() {phantom.exit();},20000);