mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
Merge pull request #89 from MetaMask/SupportUndefinedAddressSelection
Support undefined address selection
This commit is contained in:
commit
c4bf8fcce6
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "__MSG_appName__",
|
"name": "__MSG_appName__",
|
||||||
"short_name": "Metamask",
|
"short_name": "Metamask",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"description": "__MSG_appDescription__",
|
"description": "__MSG_appDescription__",
|
||||||
"icons": {
|
"icons": {
|
||||||
|
@ -98,6 +98,11 @@ IdentityStore.prototype.getSelectedAddress = function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
IdentityStore.prototype.setSelectedAddress = function(address){
|
IdentityStore.prototype.setSelectedAddress = function(address){
|
||||||
|
if (!address) {
|
||||||
|
var addresses = this._getAddresses()
|
||||||
|
address = addresses[0]
|
||||||
|
}
|
||||||
|
|
||||||
this._currentState.selectedAddress = address
|
this._currentState.selectedAddress = address
|
||||||
this._didUpdate()
|
this._didUpdate()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user