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) {
|
function handleBitcoinURI(url) {
|
||||||
if (!url) return;
|
if (!url) return;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.location = '#/uri-payment/' + url;
|
window.location = '#/payment/' + url;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,8 @@ angular
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('uri-payment', {
|
.state('payment', {
|
||||||
url: '/uri-payment/:data',
|
url: '/payment/:data',
|
||||||
templateUrl: 'views/paymentUri.html',
|
templateUrl: 'views/paymentUri.html',
|
||||||
views: {
|
views: {
|
||||||
'main': {
|
'main': {
|
||||||
|
|
@ -385,7 +385,7 @@ angular
|
||||||
walletHome: 0,
|
walletHome: 0,
|
||||||
copayers: -1,
|
copayers: -1,
|
||||||
cordova: -1,
|
cordova: -1,
|
||||||
uri-payment: -1,
|
payment: -1,
|
||||||
|
|
||||||
preferences: 11,
|
preferences: 11,
|
||||||
preferencesColor: 12,
|
preferencesColor: 12,
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ var UriHandler = function() {};
|
||||||
|
|
||||||
UriHandler.prototype.register = function() {
|
UriHandler.prototype.register = function() {
|
||||||
var base = window.location.origin + '/';
|
var base = window.location.origin + '/';
|
||||||
var url = base + '#/uri-payment/%s';
|
var url = base + '#/payment/%s';
|
||||||
|
|
||||||
if(navigator.registerProtocolHandler) {
|
if(navigator.registerProtocolHandler) {
|
||||||
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue