remove console.logs

This commit is contained in:
Manuel Araoz 2014-06-03 18:38:56 -03:00
commit 7798e38253
18 changed files with 9 additions and 161 deletions

View file

@ -93,7 +93,7 @@ angular.module('copayApp.controllers').controller('SendController',
//alert(JSON.stringify(qrcode.process(context)));
qrcode.decode();
} catch (e) {
console.log('error decoding QR: '+e);
// error decoding QR
}
}, 1500);
};
@ -135,7 +135,6 @@ angular.module('copayApp.controllers').controller('SendController',
};
var _videoError = function(err) {
console.log('Video Error: ' + JSON.stringify(err));
_scanStop();
};
@ -143,7 +142,6 @@ angular.module('copayApp.controllers').controller('SendController',
_scanStop();
var str = (data.indexOf('bitcoin:') === 0) ? data.substring(8) : data;
console.log('QR code detected: ' + str);
$scope.$apply(function() {
$scope.address = str;
});

View file

@ -21,16 +21,13 @@ angular.module('copayApp.controllers').controller('SigninController',
$scope.loading = true;
var password = form.openPassword.$modelValue;
console.log('## Obtaining passphrase...');
Passphrase.getBase64Async(password, function(passphrase){
console.log('## Passphrase obtained');
var w, errMsg;
try{
var w = walletFactory.open($scope.selectedWalletId, { passphrase: passphrase});
} catch (e){
errMsg = e.message;
};
if (!w) {
$scope.loading = $scope.failure = false;
$rootScope.$flashMessage = { message: errMsg || 'Wrong password', type: 'error'};

View file

@ -54,7 +54,6 @@ angular.module('copayApp.controllers').controller('TransactionsController',
$rootScope.txAlertCount = 0;
var w = $rootScope.wallet;
w.sendTx(ntxid, function(txid) {
console.log('[transactions.js.68:txid:] SENTTX CALLBACK',txid); //TODO
$rootScope.$flashMessage = txid
? {type:'success', message: 'Transaction broadcasted. txid: ' + txid}
: {type:'error', message: 'There was an error sending the Transaction'}
@ -90,7 +89,6 @@ angular.module('copayApp.controllers').controller('TransactionsController',
$scope.getTransactions = function(cb) {
var w =$rootScope.wallet;
if (w) {
console.log('### Querying last transactions...'); //TODO
var addresses = w.getAddressesStr();
if (addresses.length > 0) {
return w.blockchain.getTransactions(addresses, cb);