Get protocol handler from walletService

This commit is contained in:
Gustavo Maximiliano Cortez 2017-09-09 19:42:48 -03:00
commit 779d21e9e9
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 18 additions and 2 deletions

View file

@ -1232,5 +1232,10 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
});
};
root.getProtocolHandler = function(wallet) {
if (wallet.coin== 'bch') return 'bitcoincash';
else return 'bitcoin';
}
return root;
});