Fix open external in new tab and fix typo

This commit is contained in:
Yemel Jardi 2014-07-31 14:06:55 -03:00
commit e5fd3c38f4
3 changed files with 21 additions and 22 deletions

View file

@ -20,13 +20,6 @@ angular.module('copayApp.controllers').controller('AddressesController',
var ModalInstanceCtrl = function ($scope, $modalInstance, address) {
$scope.address = address;
$scope.openExternal = function(address) {
var url = 'bitcoin:' + address;
if (window.cordova) return window.open(url, '_blank');
window.location = url;
}
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};