Merge pull request #209 from gabrielbazan7/fix/lastState

Save last state only for onboarding views
This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-28 12:39:57 -03:00 committed by GitHub
commit 008eb310e1
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;