From 832e40267157ce78179afc1d4ad76cfb6ff95189 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 cc06ea6..877c8cd 100644 --- a/src/Client.js +++ b/src/Client.js @@ -69,7 +69,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