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) {
|
if (platformInfo.isCordova) {
|
||||||
storage = new cordova.plugins.SecureStorage(
|
storage = new cordova.plugins.SecureStorage(
|
||||||
function () {
|
function () {
|
||||||
$log.debug('mobileSecureStorageService initialised.');
|
|
||||||
isReady = true;
|
isReady = true;
|
||||||
for (var i = 0; i < pending.length; i++) {
|
for (var i = 0; i < pending.length; i++) {
|
||||||
pending[i]();
|
pending[i]();
|
||||||
|
|
@ -20,7 +19,6 @@ angular.module('copayApp.services').factory('mobileSecureStorageService', functi
|
||||||
pending = [];
|
pending = [];
|
||||||
},
|
},
|
||||||
function (error) {
|
function (error) {
|
||||||
c$log.debug('mobileSecureStorageService initialisation failed. ' + error);
|
|
||||||
initialisationFailed = true;
|
initialisationFailed = true;
|
||||||
},
|
},
|
||||||
appConfigService.packageNameId);
|
appConfigService.packageNameId);
|
||||||
|
|
@ -37,16 +35,13 @@ angular.module('copayApp.services').factory('mobileSecureStorageService', functi
|
||||||
if (initialisationFailed) {
|
if (initialisationFailed) {
|
||||||
cb(new Error('mobileSecureStorageService initialisation failed.'));
|
cb(new Error('mobileSecureStorageService initialisation failed.'));
|
||||||
} else {
|
} else {
|
||||||
$log.debug('mss.get() queued.');
|
|
||||||
pending.push(function(){ root.get(key, cb); });
|
pending.push(function(){ root.get(key, cb); });
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$log.debug('mss.get() running.');
|
|
||||||
storage.get(
|
storage.get(
|
||||||
function (value) {
|
function (value) {
|
||||||
$log.debug('mss.get() succeeded.');
|
|
||||||
cb(null, value);
|
cb(null, value);
|
||||||
},
|
},
|
||||||
function (error) {
|
function (error) {
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,9 @@ angular.module('copayApp.services').factory('secureStorageService', function(des
|
||||||
}
|
}
|
||||||
|
|
||||||
root.get = function(k, cb) {
|
root.get = function(k, cb) {
|
||||||
$log.debug('ss.get()');
|
|
||||||
if (platformInfo.isMobile) {
|
if (platformInfo.isMobile) {
|
||||||
$log.debug('ss.get() using mobile.');
|
|
||||||
mobileSecureStorageService.get(k, cb);
|
mobileSecureStorageService.get(k, cb);
|
||||||
} else if (platformInfo.isNW) {
|
} else if (platformInfo.isNW) {
|
||||||
$log.debug('ss.get() using desktop.');
|
|
||||||
desktopSecureStorageService.get(k, cb);
|
desktopSecureStorageService.get(k, cb);
|
||||||
} else { // Browser
|
} else { // Browser
|
||||||
localStorageService.get(alteredKeyIndicatingDesireForSecureStorage(k), cb);
|
localStorageService.get(alteredKeyIndicatingDesireForSecureStorage(k), cb);
|
||||||
|
|
|
||||||
|
|
@ -124,8 +124,6 @@ angular.module('copayApp.services')
|
||||||
};
|
};
|
||||||
|
|
||||||
root.getProfile = function(cb) {
|
root.getProfile = function(cb) {
|
||||||
$log.debug("getProfile() 1 8");
|
|
||||||
|
|
||||||
secureStorageService.get('profile', function(err, str) {
|
secureStorageService.get('profile', function(err, str) {
|
||||||
|
|
||||||
if (err || !str)
|
if (err || !str)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue