aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/popup.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-04-21 13:07:00 +0800
committerkumavis <kumavis@users.noreply.github.com>2016-04-21 13:07:00 +0800
commitdb85827b2be19d7bfc7dfaeec4786c4d051b6629 (patch)
tree39075d39ddcfbcb80016d61a22942451dbc745b9 /app/scripts/popup.js
parentf82a4de725e384ab4bb39c57f83a3dbb406c8db6 (diff)
parent532edf670e8c30db958765141974f3fb0f5ec44c (diff)
downloadtangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar
tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.gz
tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.bz2
tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.lz
tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.xz
tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.zst
tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.zip
Merge pull request #125 from MetaMask/TransactionList
Add transaction history to account detail view
Diffstat (limited to 'app/scripts/popup.js')
-rw-r--r--app/scripts/popup.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/scripts/popup.js b/app/scripts/popup.js
index 85b3e30f9..6a39da661 100644
--- a/app/scripts/popup.js
+++ b/app/scripts/popup.js
@@ -17,7 +17,7 @@ injectCss(css)
async.parallel({
currentDomain: getCurrentDomain,
accountManager: connectToAccountManager,
-}, setupApp)
+}, getNetworkVersion)
function connectToAccountManager(cb){
// setup communication with background
@@ -65,6 +65,13 @@ function getCurrentDomain(cb){
})
}
+function getNetworkVersion(cb, results) {
+ web3.version.getNetwork(function(err, result) {
+ results.networkVersion = result
+ setupApp(err, results)
+ })
+}
+
function setupApp(err, opts){
if (err) {
alert(err.stack)
@@ -78,6 +85,6 @@ function setupApp(err, opts){
container: container,
accountManager: opts.accountManager,
currentDomain: opts.currentDomain,
+ networkVersion: opts.networkVersion,
})
-
}