Fix uri payment path

This commit is contained in:
Gustavo Maximiliano Cortez 2015-05-15 20:09:45 -03:00
commit 1b156c3b65
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 5 additions and 5 deletions

View file

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

View file

@ -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,

View file

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