aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-12-20 04:25:35 +0800
committerkumavis <aaron@kumavis.me>2016-12-20 04:25:35 +0800
commitb4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895 (patch)
tree923b36e30e369b71ae909100cde0061bf95aeb91 /app/scripts
parentd24acc5f13f730950c4d093fea9d954293940406 (diff)
downloadtangerine-wallet-browser-b4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895.tar
tangerine-wallet-browser-b4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895.tar.gz
tangerine-wallet-browser-b4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895.tar.bz2
tangerine-wallet-browser-b4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895.tar.lz
tangerine-wallet-browser-b4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895.tar.xz
tangerine-wallet-browser-b4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895.tar.zst
tangerine-wallet-browser-b4a298e1a3d5ad5ede0c1e5bd094c8f867cd6895.zip
inpage - temporarily disable ping stream
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/inpage.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js
index ef199946c..7d43bd20e 100644
--- a/app/scripts/inpage.js
+++ b/app/scripts/inpage.js
@@ -2,8 +2,8 @@
cleanContextForImports()
require('web3/dist/web3.min.js')
const LocalMessageDuplexStream = require('post-message-stream')
-const PingStream = require('ping-pong-stream/ping')
-const endOfStream = require('end-of-stream')
+// const PingStream = require('ping-pong-stream/ping')
+// const endOfStream = require('end-of-stream')
const setupDappAutoReload = require('./lib/auto-reload.js')
const MetamaskInpageProvider = require('./lib/inpage-provider.js')
restoreContextAfterImports()
@@ -40,13 +40,14 @@ reloadStream.once('data', triggerReload)
// setup ping timeout autoreload
// LocalMessageDuplexStream does not self-close, so reload if pingStream fails
-var pingChannel = inpageProvider.multiStream.createStream('pingpong')
-var pingStream = new PingStream({ objectMode: true })
+// var pingChannel = inpageProvider.multiStream.createStream('pingpong')
+// var pingStream = new PingStream({ objectMode: true })
// wait for first successful reponse
-metamaskStream.once('data', function(){
- pingStream.pipe(pingChannel).pipe(pingStream)
-})
-endOfStream(pingStream, triggerReload)
+// disable pingStream until https://github.com/MetaMask/metamask-plugin/issues/746 is resolved more gracefully
+// metamaskStream.once('data', function(){
+// pingStream.pipe(pingChannel).pipe(pingStream)
+// })
+// endOfStream(pingStream, triggerReload)
// set web3 defaultAcount
inpageProvider.publicConfigStore.subscribe(function (state) {