From 7e286d88d8343e6f44889e1d47ed4b7c79ec3fc2 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 12 Aug 2014 17:08:08 -0400 Subject: [PATCH] remove alerts --- js/models/core/Wallet.js | 3 +-- js/models/network/Async.js | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 9ab95fa7e..d86999b59 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -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); diff --git a/js/models/network/Async.js b/js/models/network/Async.js index a3e9bbd53..ba852a0cc 100644 --- a/js/models/network/Async.js +++ b/js/models/network/Async.js @@ -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; } */