Fixed some issues after the refactor.
This commit is contained in:
parent
aaad6a1b4a
commit
17685dd810
2 changed files with 46 additions and 43 deletions
|
|
@ -9,9 +9,12 @@ angular.module('copayApp.services').factory('secureStorageService', function(des
|
|||
}
|
||||
|
||||
root.get = function(k, cb) {
|
||||
$log.debug('ss.get()');
|
||||
if (platformInfo.isMobile) {
|
||||
$log.debug('ss.get() using mobile.');
|
||||
mobileSecureStorageService.get(k, cb);
|
||||
} else if (platformInfo.isNW) {
|
||||
$log.debug('ss.get() using desktop.');
|
||||
desktopSecureStorageService.get(k, cb);
|
||||
} else { // Browser
|
||||
localStorageService.get(alteredKeyIndicatingDesireForSecureStorage(k), cb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue