Merge pull request #2615 from cmgustavo/bug/chromeapp-02

Bug/chromeapp 02
This commit is contained in:
Matias Alejo Garcia 2015-04-24 11:14:37 -03:00
commit 32c4d1e472
2 changed files with 3 additions and 1 deletions

View file

@ -306,6 +306,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
} else {
self.newAddress();
}
$scope.$digest();
});
});
};

View file

@ -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;