Fix uri-payment

This commit is contained in:
Gustavo Maximiliano Cortez 2015-05-15 20:19:01 -03:00
parent 345e42688a
commit aa6289627a
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -113,7 +113,7 @@ angular
}
})
.state('payment', {
url: '/payment/:data',
url: '/uri-payment/:data',
templateUrl: 'views/paymentUri.html',
views: {
'main': {

View File

@ -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');