Removed some debug messages.
This commit is contained in:
parent
c5121afd7c
commit
8d94a244bc
3 changed files with 0 additions and 10 deletions
|
|
@ -12,7 +12,6 @@ angular.module('copayApp.services').factory('mobileSecureStorageService', functi
|
|||
if (platformInfo.isCordova) {
|
||||
storage = new cordova.plugins.SecureStorage(
|
||||
function () {
|
||||
$log.debug('mobileSecureStorageService initialised.');
|
||||
isReady = true;
|
||||
for (var i = 0; i < pending.length; i++) {
|
||||
pending[i]();
|
||||
|
|
@ -20,7 +19,6 @@ angular.module('copayApp.services').factory('mobileSecureStorageService', functi
|
|||
pending = [];
|
||||
},
|
||||
function (error) {
|
||||
c$log.debug('mobileSecureStorageService initialisation failed. ' + error);
|
||||
initialisationFailed = true;
|
||||
},
|
||||
appConfigService.packageNameId);
|
||||
|
|
@ -37,16 +35,13 @@ angular.module('copayApp.services').factory('mobileSecureStorageService', functi
|
|||
if (initialisationFailed) {
|
||||
cb(new Error('mobileSecureStorageService initialisation failed.'));
|
||||
} else {
|
||||
$log.debug('mss.get() queued.');
|
||||
pending.push(function(){ root.get(key, cb); });
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
$log.debug('mss.get() running.');
|
||||
storage.get(
|
||||
function (value) {
|
||||
$log.debug('mss.get() succeeded.');
|
||||
cb(null, value);
|
||||
},
|
||||
function (error) {
|
||||
|
|
|
|||
|
|
@ -9,12 +9,9 @@ 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);
|
||||
|
|
|
|||
|
|
@ -124,8 +124,6 @@ angular.module('copayApp.services')
|
|||
};
|
||||
|
||||
root.getProfile = function(cb) {
|
||||
$log.debug("getProfile() 1 8");
|
||||
|
||||
secureStorageService.get('profile', function(err, str) {
|
||||
|
||||
if (err || !str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue