Removed console errors

This commit is contained in:
Matias Pando 2014-11-03 14:34:38 -03:00
commit 0c741814f3
3 changed files with 6 additions and 22 deletions

View file

@ -19,12 +19,6 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
var _importBackup = function(str) {
var password = $scope.password;
updateStatus('Importing profile - Setting things up...');
// var skipFields = [];
// if ($scope.skipPublicKeyRing)
// skipFields.push('publicKeyRing');
//
// if ($scope.skipTxProposals)
// skipFields.push('txProposals');
copay.Identity.importFromEncryptedFullJson(str, password, {
pluginManager: pluginManager,
@ -34,11 +28,9 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
passphraseConfig: config.passphraseConfig,
}, function(err, iden) {
if (err && !iden) {
console.log('Error:' + err)
controllerUtils.onErrorDigest(
$scope, (err.toString() || '').match('BADSTR') ? 'Bad password or corrupt profile file' : 'Unknown error');
} else {
console.log('Success.....Profile imported successfully');
notification.info('Success', 'Profile imported successfully');
$location.path('/');
}