mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #911 from MetaMask/i873-reloadBroken
Fix broken disconnect detector
This commit is contained in:
commit
0e83b26710
@ -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