idStore - add isInitialized flag

feature/default_network_editable
kumavis 9 years ago
parent 5fbaed23c6
commit 9da4094db6
  1. 1
      app/scripts/lib/idStore.js

@ -40,6 +40,7 @@ IdentityStore.prototype.setStore = function(store){
IdentityStore.prototype.getState = function(){ IdentityStore.prototype.getState = function(){
const self = this const self = this
return clone(extend(self._currentState, { return clone(extend(self._currentState, {
isInitialized: !!window.localStorage['lightwallet'],
isUnlocked: self._isUnlocked(), isUnlocked: self._isUnlocked(),
})) }))
} }

Loading…
Cancel
Save