aboutsummaryrefslogtreecommitdiffstats
path: root/netsniff.js
diff options
context:
space:
mode:
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 6884452..78dcdf2 100644
--- a/netsniff.js
+++ b/netsniff.js
@@ -144,4 +144,6 @@ if (system.args.length === 1) {
phantom.exit();
}
});
+ // Avoid error strings before the JSON string.
+ page.onError = function(msg, stack) { };
}