mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 03:59:16 +00:00
* Fix: Cannot read properties of undefined (reading 'features') (#1407) * Fix: Cannot read properties of undefined (reading 'features') Find MD backend without features * Fix for tests * Update Client.js * Update LegacySessionAuth.js Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
This commit is contained in:
@@ -51,7 +51,7 @@ class LegacySessionAuth extends BaseAuthStrategy {
|
||||
|
||||
async getAuthEventPayload() {
|
||||
const isMD = await this.client.pupPage.evaluate(() => {
|
||||
return window.Store.Features.features.MD_BACKEND;
|
||||
return window.Store.MDBackend;
|
||||
});
|
||||
|
||||
if(isMD) throw new Error('Authenticating via JSON session is not supported for MultiDevice-enabled WhatsApp accounts.');
|
||||
@@ -69,4 +69,4 @@ class LegacySessionAuth extends BaseAuthStrategy {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = LegacySessionAuth;
|
||||
module.exports = LegacySessionAuth;
|
||||
|
||||
Reference in New Issue
Block a user