remove alerts

This commit is contained in:
Manuel Araoz 2014-08-12 17:08:08 -04:00
parent 3ebacd50cc
commit 7e286d88d8
2 changed files with 1 additions and 5 deletions

View File

@ -318,8 +318,6 @@ Wallet.prototype._handleAddressBook = function(senderId, data, isInbound) {
Wallet.prototype._handleData = function(senderId, data, isInbound) {
alert('data '+JSON.stringify(data));
if (data.type !== 'walletId' && this.id !== data.walletId) {
this.emit('badMessage', senderId);
this.log('badMessage FROM:', senderId);
@ -358,6 +356,7 @@ Wallet.prototype._handleData = function(senderId, data, isInbound) {
};
Wallet.prototype._handleConnect = function(newCopayerId) {
alert(newCopayerId);
if (newCopayerId) {
this.log('#### Setting new COPAYER:', newCopayerId);
this.sendWalletId(newCopayerId);

View File

@ -196,14 +196,12 @@ Network.prototype._onMessage = function(enc) {
var payload = decoded.payload;
} catch (e) {
this._deletePeer(sender);
alert('quit 1');
return;
}
if (this.allowedCopayerIds && !this.allowedCopayerIds[payload.copayerId]) {
this._deletePeer(sender);
alert('quit 2');
return;
}
@ -213,7 +211,6 @@ Network.prototype._onMessage = function(enc) {
/*
if (!this.copayerForPeer[sender] || (isInbound && !this.isInboundPeerAuth[sender])) {
this._deletePeer(sender);
alert('quit 3');
return;
}
*/