Save last state only for onboarding views

This commit is contained in:
Gabriel Bazán 2016-09-28 12:26:09 -03:00
parent 14e941e0f2
commit 947a12b996
1 changed files with 2 additions and 0 deletions

View File

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