diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-03-25 02:05:42 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-03-25 02:05:42 +0800 |
commit | d6aa78e6478daa35c44085d11877d95c163e935a (patch) | |
tree | 1710bd056e6a2a302a8fce079d9fd1fd55c0c2b6 /app/scripts/lib | |
parent | 55f8ae4edd998a4d3897b9e1dd005f61fabefe37 (diff) | |
download | tangerine-wallet-browser-d6aa78e6478daa35c44085d11877d95c163e935a.tar tangerine-wallet-browser-d6aa78e6478daa35c44085d11877d95c163e935a.tar.gz tangerine-wallet-browser-d6aa78e6478daa35c44085d11877d95c163e935a.tar.bz2 tangerine-wallet-browser-d6aa78e6478daa35c44085d11877d95c163e935a.tar.lz tangerine-wallet-browser-d6aa78e6478daa35c44085d11877d95c163e935a.tar.xz tangerine-wallet-browser-d6aa78e6478daa35c44085d11877d95c163e935a.tar.zst tangerine-wallet-browser-d6aa78e6478daa35c44085d11877d95c163e935a.zip |
Gave lock a callback for better loading indication
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/idStore.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index c44429216..c4547b07f 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -91,10 +91,11 @@ IdentityStore.prototype.setSelectedAddress = function(address){ self._didUpdate() } -IdentityStore.prototype.setLocked = function(){ +IdentityStore.prototype.setLocked = function(cb){ const self = this delete self._keyStore delete self._idmgmt + cb() } IdentityStore.prototype.submitPassword = function(password, cb){ @@ -270,7 +271,7 @@ IdentityStore.prototype._createFirstWallet = function(entropy, derivedKey) { var keyStore = new LightwalletKeyStore(secretSeed, derivedKey) keyStore.generateNewAddress(derivedKey, 3) window.localStorage['lightwallet'] = keyStore.serialize() - console.log('wallet generated. saved to keystore localStorage') + console.log('saved to keystore localStorage') return keyStore } |