1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

idStore - add isInitialized flag

This commit is contained in:
kumavis 2016-02-15 14:44:13 -08:00
parent 5fbaed23c6
commit 9da4094db6

View File

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