aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/contentscript.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-30 07:49:58 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-30 07:49:58 +0800
commit6838027c6587e41b996dd1cec201980ffd96af08 (patch)
treefedfc80475eab69fc4e09cd8a08dc254a12a0282 /app/scripts/contentscript.js
parentfb6476224ff0537e179705c2ae0895672a23a67b (diff)
downloadtangerine-wallet-browser-6838027c6587e41b996dd1cec201980ffd96af08.tar
tangerine-wallet-browser-6838027c6587e41b996dd1cec201980ffd96af08.tar.gz
tangerine-wallet-browser-6838027c6587e41b996dd1cec201980ffd96af08.tar.bz2
tangerine-wallet-browser-6838027c6587e41b996dd1cec201980ffd96af08.tar.lz
tangerine-wallet-browser-6838027c6587e41b996dd1cec201980ffd96af08.tar.xz
tangerine-wallet-browser-6838027c6587e41b996dd1cec201980ffd96af08.tar.zst
tangerine-wallet-browser-6838027c6587e41b996dd1cec201980ffd96af08.zip
Remove bind calls from console errors
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r--app/scripts/contentscript.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index de2cf263b..b3a560c88 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -43,20 +43,20 @@ function setupStreams(){
name: 'contentscript',
target: 'inpage',
})
- pageStream.on('error', console.error.bind(console))
+ pageStream.on('error', console.error)
var pluginPort = extension.runtime.connect({name: 'contentscript'})
var pluginStream = new PortStream(pluginPort)
- pluginStream.on('error', console.error.bind(console))
+ pluginStream.on('error', console.error)
// forward communication plugin->inpage
pageStream.pipe(pluginStream).pipe(pageStream)
// connect contentscript->inpage reload stream
var mx = ObjectMultiplex()
- mx.on('error', console.error.bind(console))
+ mx.on('error', console.error)
mx.pipe(pageStream)
var reloadStream = mx.createStream('reload')
- reloadStream.on('error', console.error.bind(console))
+ reloadStream.on('error', console.error)
// if we lose connection with the plugin, trigger tab refresh
pluginStream.on('close', function () {