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
This commit is contained in:
Caio Henrique Agiani 2020-06-04 21:03:44 -03:00 • committed by GitHub
commit 832e402671
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ class Client extends EventEmitter {
timeout: 0, 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) { if (this.options.session) {
// Check if session restore was successfull // Check if session restore was successfull