From 947a12b996f3c3fae7b16c4f0fd0b9c1146ae7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 28 Sep 2016 12:26:09 -0300 Subject: [PATCH] Save last state only for onboarding views --- src/js/routes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/routes.js b/src/js/routes.js index d76a7328e..ba828213c 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -995,6 +995,8 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr $log.debug('Route change from:', fromState.name || '-', ' to:', toState.name); $log.debug(' toParams:' + JSON.stringify(toParams || {})); $log.debug(' fromParams:' + JSON.stringify(fromParams || {})); + + if (!toState.name.match(/onboarding/)) return; var state = {}; state.name = toState.name; state.toParams = toParams;