rm focusedClient

This commit is contained in:
Matias Alejo Garcia 2016-08-22 14:42:43 -03:00
commit d4f39abc9a
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
9 changed files with 102 additions and 147 deletions

View file

@ -24,9 +24,11 @@ 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;
var networkName = attrs.networkName;
if (!networkName)
throw 'validAddress should provide network name';
// Regular url
if (/^https?:\/\//.test(value)) {
ctrl.$setValidity('validAddress', true);