Fix link account

This commit is contained in:
Gustavo Maximiliano Cortez 2017-02-14 15:04:18 -03:00
commit 4ec340640e
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 22 additions and 45 deletions

View file

@ -122,9 +122,23 @@ angular.module('copayApp.services').factory('incomingData', function($log, $stat
goToAmountPage(data);
}
} else if (data && data.indexOf(appConfigService.name + '://glidera') === 0) {
return $state.go('uriglidera', {
url: data
var code = getParameterByName('code', data);
$ionicHistory.nextViewOptions({
disableAnimate: true
});
$state.go('tabs.home', {}, {
'reload': true,
'notify': $state.current.name == 'tabs.home' ? false : true
}).then(function() {
$ionicHistory.nextViewOptions({
disableAnimate: true
});
$state.transitionTo('tabs.buyandsell.glidera', {
code: code
});
});
return true;
} else if (data && data.indexOf(appConfigService.name + '://coinbase') === 0) {
var code = getParameterByName('code', data);
$ionicHistory.nextViewOptions({