From 86ce14764ad817d81ded74f04f02602e7723f0d1 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sun, 21 Jun 2020 22:24:36 +0530 Subject: [PATCH] Update WhatsAppWeb.js --- WhatsAppWeb.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/WhatsAppWeb.js b/WhatsAppWeb.js index 4ab680b..8fed41d 100644 --- a/WhatsAppWeb.js +++ b/WhatsAppWeb.js @@ -90,9 +90,7 @@ class WhatsAppWeb { * What to do when you need the phone to authenticate the connection (generate QR code by default) */ this.onReadyForPhoneAuthentication = this.generateQRCode - - this.onRe - this.encoder = new BinaryCoding.Encoder() + this.encoder = new BinaryCoding.Encoder() this.decoder = new BinaryCoding.Decoder() this.unexpectedDisconnect = (err) => { this.close () } @@ -274,4 +272,4 @@ WhatsAppWeb.prototype.groupMakeAdmin = query.groupMakeAdmin WhatsAppWeb.prototype.groupInviteCode = query.groupInviteCode -module.exports = WhatsAppWeb \ No newline at end of file +module.exports = WhatsAppWeb