From 6838027c6587e41b996dd1cec201980ffd96af08 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 29 Aug 2016 16:49:58 -0700 Subject: Remove bind calls from console errors --- app/scripts/contentscript.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app') 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 () { -- cgit