From aa6289627a6c38d1a721902336d55b7443db0987 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 15 May 2015 20:19:01 -0300 Subject: [PATCH] Fix uri-payment --- src/js/init.js | 2 +- src/js/routes.js | 2 +- src/js/services/uriHandler.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/init.js b/src/js/init.js index a9acfcce3..8cacff9a5 100644 --- a/src/js/init.js +++ b/src/js/init.js @@ -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); } diff --git a/src/js/routes.js b/src/js/routes.js index a3bdf21e7..6c0c21f04 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -113,7 +113,7 @@ angular } }) .state('payment', { - url: '/payment/:data', + url: '/uri-payment/:data', templateUrl: 'views/paymentUri.html', views: { 'main': { diff --git a/src/js/services/uriHandler.js b/src/js/services/uriHandler.js index 3cb09e98e..da67ab4be 100644 --- a/src/js/services/uriHandler.js +++ b/src/js/services/uriHandler.js @@ -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');