1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Merge pull request #748 from MetaMask/i746-ReloadBug

Wait for first metamask data to establish ping-pong stream.
This commit is contained in:
kumavis 2016-10-18 13:58:14 -07:00 committed by GitHub
commit a542118a55
2 changed files with 3 additions and 1 deletions

View File

@ -3,11 +3,13 @@
## Current Master ## Current Master
- Increase default max gas to `100000` over the RPC's `estimateGas` response. - Increase default max gas to `100000` over the RPC's `estimateGas` response.
- Fix bug where slow-loading dapps would sometimes trigger infinite reload loops.
## 2.13.4 2016-10-17 ## 2.13.4 2016-10-17
- Add custom transaction fee field to send form. - Add custom transaction fee field to send form.
- Fix bug where web3 was being injected into XML files. - Fix bug where web3 was being injected into XML files.
- Fix bug where changing network would not reload current Dapps.
## 2.13.3 2016-10-4 ## 2.13.3 2016-10-4

View File

@ -43,7 +43,7 @@ reloadStream.once('data', triggerReload)
var pingChannel = inpageProvider.multiStream.createStream('pingpong') var pingChannel = inpageProvider.multiStream.createStream('pingpong')
var pingStream = new PingStream({ objectMode: true }) var pingStream = new PingStream({ objectMode: true })
// wait for first successful reponse // wait for first successful reponse
metamaskStream.once('data', function(){ metamaskStream.once('_data', function(){
pingStream.pipe(pingChannel).pipe(pingStream) pingStream.pipe(pingChannel).pipe(pingStream)
}) })
endOfStream(pingStream, triggerReload) endOfStream(pingStream, triggerReload)