aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/contentscript.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-02-11 03:46:13 +0800
committerkumavis <aaron@kumavis.me>2016-02-11 03:46:13 +0800
commit066996396ff0ec6a9f6724e1f6469a0bc67a07ca (patch)
tree5c9e34bd1fe94ffcd2c96b2c288b879258f22489 /app/scripts/contentscript.js
parentebf60843fabd743cbf821611fc9343e1d4a323b7 (diff)
downloadtangerine-wallet-browser-066996396ff0ec6a9f6724e1f6469a0bc67a07ca.tar.gz
tangerine-wallet-browser-066996396ff0ec6a9f6724e1f6469a0bc67a07ca.tar.zst
tangerine-wallet-browser-066996396ff0ec6a9f6724e1f6469a0bc67a07ca.zip
context wiring - handle and log errors
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r--app/scripts/contentscript.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 1b0de3375..105f24988 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -19,4 +19,8 @@ var pluginStream = new PortStream(pluginPort)
// forward communication across
pageStream.pipe(pluginStream)
-pluginStream.pipe(pageStream) \ No newline at end of file
+pluginStream.pipe(pageStream)
+
+// log errors
+pageStream.on('error', console.error.bind(console))
+pluginStream.on('error', console.error.bind(console)) \ No newline at end of file