diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-10-19 04:51:50 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-10-19 04:51:50 +0800 |
commit | cc23158bfee2b723e8e80e0d25cbca2c2c6406a3 (patch) | |
tree | e94017049824bffffdaa3bea9450adb4e29c708d /app | |
parent | 0f0951ba549c294222421ef8508294165e9b5fdd (diff) | |
download | tangerine-wallet-browser-cc23158bfee2b723e8e80e0d25cbca2c2c6406a3.tar tangerine-wallet-browser-cc23158bfee2b723e8e80e0d25cbca2c2c6406a3.tar.gz tangerine-wallet-browser-cc23158bfee2b723e8e80e0d25cbca2c2c6406a3.tar.bz2 tangerine-wallet-browser-cc23158bfee2b723e8e80e0d25cbca2c2c6406a3.tar.lz tangerine-wallet-browser-cc23158bfee2b723e8e80e0d25cbca2c2c6406a3.tar.xz tangerine-wallet-browser-cc23158bfee2b723e8e80e0d25cbca2c2c6406a3.tar.zst tangerine-wallet-browser-cc23158bfee2b723e8e80e0d25cbca2c2c6406a3.zip |
Wait for first metamask data to establish ping-pong stream.
Prevents infinite reload loops when dapps take too long to load.
Fixes #746.
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/inpage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index ef199946c..85dd70b4d 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -43,7 +43,7 @@ reloadStream.once('data', triggerReload) var pingChannel = inpageProvider.multiStream.createStream('pingpong') var pingStream = new PingStream({ objectMode: true }) // wait for first successful reponse -metamaskStream.once('data', function(){ +metamaskStream.once('_data', function(){ pingStream.pipe(pingChannel).pipe(pingStream) }) endOfStream(pingStream, triggerReload) |