1
0
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:
Dan Finlay 2016-04-04 12:16:57 -07:00
commit c4bf8fcce6
2 changed files with 6 additions and 1 deletions

View File

@ -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": {

View File

@ -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()
} }