aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-09-13 09:30:45 +0800
committerkumavis <aaron@kumavis.me>2016-09-13 09:30:45 +0800
commit4cfcb4452a3278cfa775e247271053e82f238fb5 (patch)
tree0f13d4e5c2e889b926c69343bd141287cc8883d0 /library
parent850b6d144092291bb80ad998d3f8177da9c98c13 (diff)
downloadtangerine-wallet-browser-4cfcb4452a3278cfa775e247271053e82f238fb5.tar
tangerine-wallet-browser-4cfcb4452a3278cfa775e247271053e82f238fb5.tar.gz
tangerine-wallet-browser-4cfcb4452a3278cfa775e247271053e82f238fb5.tar.bz2
tangerine-wallet-browser-4cfcb4452a3278cfa775e247271053e82f238fb5.tar.lz
tangerine-wallet-browser-4cfcb4452a3278cfa775e247271053e82f238fb5.tar.xz
tangerine-wallet-browser-4cfcb4452a3278cfa775e247271053e82f238fb5.tar.zst
tangerine-wallet-browser-4cfcb4452a3278cfa775e247271053e82f238fb5.zip
bugfix - prevent iframe restart restart
Diffstat (limited to 'library')
-rw-r--r--library/controller.js3
-rw-r--r--library/example/index.js11
2 files changed, 9 insertions, 5 deletions
diff --git a/library/controller.js b/library/controller.js
index 24b841f5e..d5cd0525e 100644
--- a/library/controller.js
+++ b/library/controller.js
@@ -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)
diff --git a/library/example/index.js b/library/example/index.js
index 91d2237c2..a3f4b9859 100644
--- a/library/example/index.js
+++ b/library/example/index.js
@@ -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)
+} \ No newline at end of file