From 6723cba56a8b9d9d55ce5eb2842302c25352f176 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 24 Apr 2015 18:06:04 -0300 Subject: [PATCH] rm logs --- src/js/services/localStorage.js | 6 ------ src/js/services/profileService.js | 5 ----- src/js/services/storageService.js | 5 ++++- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/js/services/localStorage.js b/src/js/services/localStorage.js index e4574351f..1d8c55b11 100644 --- a/src/js/services/localStorage.js +++ b/src/js/services/localStorage.js @@ -21,13 +21,7 @@ angular.module('copayApp.services') return cb(null, data[k]); }); } else { -console.log('[localStorage.js.24]',k); //TODO -console.log('[localStorage.js.25:TODO:]'); //TODO -console.log('[localStorage.js.26:TODO:]'); //TODO -console.log('[localStorage.js.27:TODO:]'); //TODO - $timeout(function() { return cb(null, ls.getItem(k)); - }, 1000); } }; diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 88225bfcb..4f90edb5c 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -111,8 +111,6 @@ angular.module('copayApp.services') root.bindProfile = function(profile, cb) { - -console.log('[profileService.js.114] Bind profile', profile); //TODO root.profile = profile; configService.get(function(err) { @@ -129,14 +127,12 @@ console.log('[profileService.js.114] Bind profile', profile); //TODO root.loadAndBindProfile = function(cb) { storageService.getProfile(function(err, profile) { -console.log('[profileService.js.129:err:]',err); //TODO if (err) { $rootScope.$emit('Local/DeviceError', err); return cb(err); } if (!profile) return cb(new Error('NOPROFILE: No profile')); -console.log('[profileService.js.135] BIND'); //TODO return root.bindProfile(profile, cb); }); }; @@ -192,7 +188,6 @@ console.log('[profileService.js.135] BIND'); //TODO return cb('Could not join using the specified extended private key'); } } - // TODO name walletClient.joinWallet(opts.secret, opts.myName || 'me', function(err) { if (err) return cb(err); diff --git a/src/js/services/storageService.js b/src/js/services/storageService.js index 671525ee1..37ee76731 100644 --- a/src/js/services/storageService.js +++ b/src/js/services/storageService.js @@ -61,7 +61,10 @@ angular.module('copayApp.services') root.getProfile = function(cb) { storage.get('profile', function(err, str) { - if (err || !str) return cb(err); + + if (err || !str) + // Migrate ? + return cb(err); decryptOnMobile(str, function(err, str) { if (err) return cb(err);