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:
parent
5fbaed23c6
commit
9da4094db6
@ -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…
Reference in New Issue
Block a user