Fixed some issues after the refactor.

This commit is contained in:
Brendon Duncan 2018-06-01 10:42:38 +12:00
commit 17685dd810
2 changed files with 46 additions and 43 deletions

View file

@ -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);