Merge pull request #2615 from cmgustavo/bug/chromeapp-02
Bug/chromeapp 02
This commit is contained in:
commit
32c4d1e472
2 changed files with 3 additions and 1 deletions
|
|
@ -306,6 +306,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
} else {
|
||||
self.newAddress();
|
||||
}
|
||||
$scope.$digest();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ angular.module('copayApp.directives')
|
|||
var URI = bitcore.URI;
|
||||
var Address = bitcore.Address
|
||||
var validator = function(value) {
|
||||
if (!profileService.focusedClient)
|
||||
return;
|
||||
var networkName = profileService.focusedClient.credentials.network;
|
||||
// Regular url
|
||||
if (/^https?:\/\//.test(value)) {
|
||||
|
|
@ -51,7 +53,6 @@ angular.module('copayApp.directives')
|
|||
return;
|
||||
}
|
||||
|
||||
console.log('[directives.js.53]', value, networkName); //TODO
|
||||
// Regular Address
|
||||
ctrl.$setValidity('validAddress', Address.isValid(value, networkName));
|
||||
return value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue