Fix uri-payment
This commit is contained in:
parent
345e42688a
commit
aa6289627a
3 changed files with 3 additions and 3 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 = '#/payment/' + url;
|
window.location = '#/uri-payment/' + url;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ angular
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('payment', {
|
.state('payment', {
|
||||||
url: '/payment/:data',
|
url: '/uri-payment/:data',
|
||||||
templateUrl: 'views/paymentUri.html',
|
templateUrl: 'views/paymentUri.html',
|
||||||
views: {
|
views: {
|
||||||
'main': {
|
'main': {
|
||||||
|
|
|
||||||
|
|
@ -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 + '#/payment/%s';
|
var url = base + '#/uri-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