remove alerts
This commit is contained in:
parent
3ebacd50cc
commit
7e286d88d8
2 changed files with 1 additions and 5 deletions
|
|
@ -318,8 +318,6 @@ Wallet.prototype._handleAddressBook = function(senderId, data, isInbound) {
|
||||||
|
|
||||||
Wallet.prototype._handleData = function(senderId, data, isInbound) {
|
Wallet.prototype._handleData = function(senderId, data, isInbound) {
|
||||||
|
|
||||||
alert('data '+JSON.stringify(data));
|
|
||||||
|
|
||||||
if (data.type !== 'walletId' && this.id !== data.walletId) {
|
if (data.type !== 'walletId' && this.id !== data.walletId) {
|
||||||
this.emit('badMessage', senderId);
|
this.emit('badMessage', senderId);
|
||||||
this.log('badMessage FROM:', senderId);
|
this.log('badMessage FROM:', senderId);
|
||||||
|
|
@ -358,6 +356,7 @@ Wallet.prototype._handleData = function(senderId, data, isInbound) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Wallet.prototype._handleConnect = function(newCopayerId) {
|
Wallet.prototype._handleConnect = function(newCopayerId) {
|
||||||
|
alert(newCopayerId);
|
||||||
if (newCopayerId) {
|
if (newCopayerId) {
|
||||||
this.log('#### Setting new COPAYER:', newCopayerId);
|
this.log('#### Setting new COPAYER:', newCopayerId);
|
||||||
this.sendWalletId(newCopayerId);
|
this.sendWalletId(newCopayerId);
|
||||||
|
|
|
||||||
|
|
@ -196,14 +196,12 @@ Network.prototype._onMessage = function(enc) {
|
||||||
var payload = decoded.payload;
|
var payload = decoded.payload;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this._deletePeer(sender);
|
this._deletePeer(sender);
|
||||||
alert('quit 1');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (this.allowedCopayerIds && !this.allowedCopayerIds[payload.copayerId]) {
|
if (this.allowedCopayerIds && !this.allowedCopayerIds[payload.copayerId]) {
|
||||||
this._deletePeer(sender);
|
this._deletePeer(sender);
|
||||||
alert('quit 2');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -213,7 +211,6 @@ Network.prototype._onMessage = function(enc) {
|
||||||
/*
|
/*
|
||||||
if (!this.copayerForPeer[sender] || (isInbound && !this.isInboundPeerAuth[sender])) {
|
if (!this.copayerForPeer[sender] || (isInbound && !this.isInboundPeerAuth[sender])) {
|
||||||
this._deletePeer(sender);
|
this._deletePeer(sender);
|
||||||
alert('quit 3');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue