Merge pull request #93 from gabrielbazan7/fix/persistState

persist state if force quit app in onboarding
This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-12 16:42:55 -03:00 committed by GitHub
commit d9b8211639
2 changed files with 24 additions and 5 deletions

View file

@ -276,6 +276,13 @@ angular.module('copayApp.services')
storage.remove('nextStep-' + service, cb);
};
root.setLastState = function(state, toParams, cb) {
storage.set('lastState', state, toParams, cb);
};
root.getLastState = function(cb) {
storage.get('lastState', cb);
};
root.checkQuota = function() {
var block = '';