diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-08-30 09:27:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 09:27:55 +0800 |
commit | 791e80988d889a72fee12579fa6525b6b0f15e18 (patch) | |
tree | dedc156a42acb9419a7eba8decbcad98cc9cb59a /app/scripts/contentscript.js | |
parent | a9c738d4d3226f61942641a41c399c75a3e9eb3e (diff) | |
parent | c15eef9425531c86a9016d1cbad9d32f4d12edcd (diff) | |
download | tangerine-wallet-browser-791e80988d889a72fee12579fa6525b6b0f15e18.tar tangerine-wallet-browser-791e80988d889a72fee12579fa6525b6b0f15e18.tar.gz tangerine-wallet-browser-791e80988d889a72fee12579fa6525b6b0f15e18.tar.bz2 tangerine-wallet-browser-791e80988d889a72fee12579fa6525b6b0f15e18.tar.lz tangerine-wallet-browser-791e80988d889a72fee12579fa6525b6b0f15e18.tar.xz tangerine-wallet-browser-791e80988d889a72fee12579fa6525b6b0f15e18.tar.zst tangerine-wallet-browser-791e80988d889a72fee12579fa6525b6b0f15e18.zip |
Merge pull request #596 from MetaMask/EdgeCompatibility
Edge compatibility
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r-- | app/scripts/contentscript.js | 8 |
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 () { |