mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
inpage - correctly listen for incomming messages
This commit is contained in:
parent
46bb9558d5
commit
26b60f1b5a
@ -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