save lang and unit in BWS

This commit is contained in:
Matias Alejo Garcia 2015-06-29 21:46:34 -03:00
commit c65b2d7c07
6 changed files with 140 additions and 74 deletions

View file

@ -125,7 +125,6 @@ angular.module('copayApp.services')
$log.debug('Preferences read');
if (err) return cb(err);
root.applyConfig();
$rootScope.$emit('Local/DefaultLanguage');
root.setWalletClients();
storageService.getFocusedWalletId(function(err, focusedWalletId) {
if (err) return cb(err);

View file

@ -184,5 +184,13 @@ angular.module('copayApp.services')
storage.get('agreeDisclaimer', cb);
};
root.setRemotePreferencesStored = function(cb) {
storage.set('remotePrefStored', true, cb);
};
root.getRemovePreferencesStored = function(cb) {
storage.get('remotePrefStored', cb);
};
return root;
});