mirror of https://github.com/BTCPrivate/copay.git
remove alerts
This commit is contained in:
parent
3ebacd50cc
commit
7e286d88d8
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue