aboutsummaryrefslogtreecommitdiffstats
path: root/library/example
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-03-29 09:02:08 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-03-29 09:02:08 +0800
commit79248ae5cd3fb1314c5a7ff71c05f9dbe7b3a4cd (patch)
tree5b08ce8a990ae2b33ff7d5a81b17fcfe0130a658 /library/example
parent282775c52f558bbd90d4d0a1706a835dde6c3202 (diff)
downloadtangerine-wallet-browser-79248ae5cd3fb1314c5a7ff71c05f9dbe7b3a4cd.tar.gz
tangerine-wallet-browser-79248ae5cd3fb1314c5a7ff71c05f9dbe7b3a4cd.tar.zst
tangerine-wallet-browser-79248ae5cd3fb1314c5a7ff71c05f9dbe7b3a4cd.zip
WIP: Untrusted external connections eg: dapps
Diffstat (limited to 'library/example')
-rw-r--r--library/example/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/example/index.js b/library/example/index.js
index 4a107df6a..329302a4d 100644
--- a/library/example/index.js
+++ b/library/example/index.js
@@ -1,4 +1,3 @@
-
window.addEventListener('load', web3Detect)
function web3Detect() {
@@ -18,6 +17,7 @@ function startApp(){
web3.eth.getAccounts(function(err, addresses){
if (err) throw err
console.log('set address', addresses[0])
+ debugger
primaryAccount = addresses[0]
})
@@ -53,4 +53,4 @@ function startApp(){
function logToDom(message){
document.body.appendChild(document.createTextNode(message))
console.log(message)
-} \ No newline at end of file
+}