rm importLegacy

This commit is contained in:
Matias Alejo Garcia 2016-06-11 22:29:17 -03:00
commit bf16391085
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
5 changed files with 14 additions and 141 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.services').factory('openURLService', function($ionicHistory, $document, $log, $state, go, platformInfo, lodash) {
angular.module('copayApp.services').factory('openURLService', function($rootScope, $ionicHistory, $document, $log, $state, go, platformInfo, lodash, profileService) {
var root = {};
root.registeredUriHandlers = [{
@ -21,6 +21,15 @@ angular.module('copayApp.services').factory('openURLService', function($ionicHis
var handleOpenURL = function(args) {
$log.info('Handling Open URL: ' + JSON.stringify(args));
if (!profileService.isBound) {
$log.warn('Profile not bound yet. Waiting');
return $rootScope.$on('Local/ProfileBound', function(){
$log.warn('Profile ready, retrying...');
handleOpenURL(args);
});
};
// Stop it from caching the first view as one to return when the app opens
$ionicHistory.nextViewOptions({
historyRoot: true,