From c7ed4f831aa4c6d5032bf423c6a3da019f447388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Thu, 6 Apr 2017 17:18:57 -0300 Subject: [PATCH] fixing desktop redirect from starting to home view --- src/js/routes.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/js/routes.js b/src/js/routes.js index 6b6f4625d..2ed1d50bf 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -1273,17 +1273,16 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr goTo('pin'); } else goTo('tabs.home'); + }); + } else goTo('tabs.home'); - function goTo(nextView) { - $state.transitionTo(nextView).then(function() { - $ionicHistory.clearHistory(); - }); - }; + function goTo(nextView) { + $state.transitionTo(nextView).then(function() { + $ionicHistory.clearHistory(); }); } }); - } - + }; // After everything have been loaded, initialize handler URL $timeout(function() { openURLService.init();