From 08af65c6a4f31610b5e6cb9693a048f10df7b950 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 21 Jan 2016 16:42:44 -0300 Subject: [PATCH] Fix payment URI on mobile --- src/js/controllers/paymentUri.js | 4 +--- src/js/init.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/js/controllers/paymentUri.js b/src/js/controllers/paymentUri.js index 3ae5ad766..c202945bf 100644 --- a/src/js/controllers/paymentUri.js +++ b/src/js/controllers/paymentUri.js @@ -43,9 +43,7 @@ angular.module('copayApp.controllers').controller('paymentUriController', this.selectWallet = function(wid) { var self = this; - if (wid != profileService.focusedClient.credentials.walletId) { - profileService.setAndStoreFocus(wid, function() {}); - } + profileService.setAndStoreFocus(wid, function() {}); $timeout(function() { $rootScope.$emit('paymentUri', self.bitcoinURI); }, 1000); diff --git a/src/js/init.js b/src/js/init.js index 3bcc05d45..298a40883 100644 --- a/src/js/init.js +++ b/src/js/init.js @@ -46,7 +46,7 @@ angular.element(document).ready(function() { } setTimeout(function() { var loc = window.location; - var ignoreMobilePause = loc.toString().match(/(glidera|buy|sell)/) ? true : false; + var ignoreMobilePause = loc.toString().match(/(buy|sell|uri-payment)/) ? true : false; window.ignoreMobilePause = ignoreMobilePause; }, 100); }, false);