Fix open external in new tab and fix typo
This commit is contained in:
parent
010c13fa4f
commit
e5fd3c38f4
3 changed files with 21 additions and 22 deletions
|
|
@ -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');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue