mirror of https://github.com/BTCPrivate/copay.git
Fix uri-payment
This commit is contained in:
parent
345e42688a
commit
aa6289627a
|
@ -56,7 +56,7 @@ angular.element(document).ready(function() {
|
|||
function handleBitcoinURI(url) {
|
||||
if (!url) return;
|
||||
setTimeout(function() {
|
||||
window.location = '#/payment/' + url;
|
||||
window.location = '#/uri-payment/' + url;
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ angular
|
|||
}
|
||||
})
|
||||
.state('payment', {
|
||||
url: '/payment/:data',
|
||||
url: '/uri-payment/:data',
|
||||
templateUrl: 'views/paymentUri.html',
|
||||
views: {
|
||||
'main': {
|
||||
|
|
|
@ -4,7 +4,7 @@ var UriHandler = function() {};
|
|||
|
||||
UriHandler.prototype.register = function() {
|
||||
var base = window.location.origin + '/';
|
||||
var url = base + '#/payment/%s';
|
||||
var url = base + '#/uri-payment/%s';
|
||||
|
||||
if(navigator.registerProtocolHandler) {
|
||||
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
||||
|
|
Loading…
Reference in New Issue