1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

bugfix - prevent iframe restart restart

This commit is contained in:
kumavis 2016-09-12 18:30:45 -07:00
parent 850b6d1440
commit 4cfcb4452a
2 changed files with 9 additions and 5 deletions

View File

@ -51,7 +51,8 @@ function initializeZeroClient() {
if (err) throw err
})
multiStream.on('data', function(chunk){ console.log(chunk) })
// connectionStream.on('data', function(chunk){ console.log('connectionStream chuck', chunk) })
// multiStream.on('data', function(chunk){ console.log('multiStream chuck', chunk) })
var providerStream = multiStream.createStream('provider')
handleRequestsFromStream(providerStream, provider, logger)

View File

@ -3,12 +3,10 @@ window.addEventListener('load', web3Detect)
function web3Detect() {
if (global.web3) {
document.body.innerHTML += 'web3 detected!'
console.log('web3 detected!')
logToDom('web3 detected!')
startApp()
} else {
document.body.innerHTML += 'no web3 detected!'
console.log('no web3 detected!')
logToDom('no web3 detected!')
}
}
@ -49,3 +47,8 @@ function startApp(){
})
}
function logToDom(message){
document.body.appendChild(document.createTextNode(message))
console.log(message)
}