mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 20:19:14 +00:00
fix: Wait for WhatsApp page load (#209)
* Fix bug on Puppeteer timeout 30000 ms exceeded
This commit is contained in:
committed by
GitHub
parent
d6637d662a
commit
f5a0de7def
@@ -63,7 +63,10 @@ class Client extends EventEmitter {
|
|||||||
}, this.options.session);
|
}, this.options.session);
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.goto(WhatsWebURL);
|
await page.goto(WhatsWebURL, {
|
||||||
|
waitUntil: 'load',
|
||||||
|
timeout: 0,
|
||||||
|
});
|
||||||
|
|
||||||
const KEEP_PHONE_CONNECTED_IMG_SELECTOR = '[data-asset-intro-image="true"]';
|
const KEEP_PHONE_CONNECTED_IMG_SELECTOR = '[data-asset-intro-image="true"]';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user