Fix payment URI on mobile

This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-21 16:42:44 -03:00
commit 08af65c6a4
2 changed files with 2 additions and 4 deletions

View file

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

View file

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