Fix uri payment path
This commit is contained in:
parent
49256ead7f
commit
1b156c3b65
3 changed files with 5 additions and 5 deletions
|
|
@ -56,7 +56,7 @@ angular.element(document).ready(function() {
|
|||
function handleBitcoinURI(url) {
|
||||
if (!url) return;
|
||||
setTimeout(function() {
|
||||
window.location = '#/uri-payment/' + url;
|
||||
window.location = '#/payment/' + url;
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -112,8 +112,8 @@ angular
|
|||
}
|
||||
}
|
||||
})
|
||||
.state('uri-payment', {
|
||||
url: '/uri-payment/:data',
|
||||
.state('payment', {
|
||||
url: '/payment/:data',
|
||||
templateUrl: 'views/paymentUri.html',
|
||||
views: {
|
||||
'main': {
|
||||
|
|
@ -385,7 +385,7 @@ angular
|
|||
walletHome: 0,
|
||||
copayers: -1,
|
||||
cordova: -1,
|
||||
uri-payment: -1,
|
||||
payment: -1,
|
||||
|
||||
preferences: 11,
|
||||
preferencesColor: 12,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ var UriHandler = function() {};
|
|||
|
||||
UriHandler.prototype.register = function() {
|
||||
var base = window.location.origin + '/';
|
||||
var url = base + '#/uri-payment/%s';
|
||||
var url = base + '#/payment/%s';
|
||||
|
||||
if(navigator.registerProtocolHandler) {
|
||||
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue