Storing profile on desktop without using secure storage.

This commit is contained in:
Brendon Duncan 2018-06-11 14:09:39 +12:00
commit 149b956b7c
2 changed files with 105 additions and 6 deletions

View file

@ -116,11 +116,16 @@ angular.module('copayApp.services')
};
root.storeNewProfile = function(profile, cb) {
secureStorageService.set('profile', profile.toObj(), cb);
root.storeProfile(profile, cb);
};
root.storeProfile = function(profile, cb) {
secureStorageService.set('profile', profile.toObj(), cb);
var profileString = profile.toObj();
if (platformInfo.isNW) {
storage.set('profile', profileString, cb);
} else {
secureStorageService.set('profile', profileString, cb);
}
};
/**