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:
commit
a542118a55
@ -3,11 +3,13 @@
|
||||
## Current Master
|
||||
|
||||
- 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
|
||||
|
||||
- Add custom transaction fee field to send form.
|
||||
- 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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user