From 9c9b3c4441929a035748a2ac6903bc451079e1b4 Mon Sep 17 00:00:00 2001 From: Caio Henrique Agiani Date: Thu, 4 Jun 2020 21:03:44 -0300 Subject: [PATCH] fix: WhatsApp Autentication by oguzhan51 (#237) The selector used to detect successful authentication was changed in WhatsApp Web v2.2023.2 Co-authored-by: oguzhan51 --- src/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.js b/src/Client.js index 762c5f7..1dcce64 100644 --- a/src/Client.js +++ b/src/Client.js @@ -68,7 +68,7 @@ class Client extends EventEmitter { timeout: 0, }); - const KEEP_PHONE_CONNECTED_IMG_SELECTOR = '[data-asset-intro-image="true"]'; + const KEEP_PHONE_CONNECTED_IMG_SELECTOR = '[data-asset-intro-image-light="true"]'; if (this.options.session) { // Check if session restore was successfull