Skip to content

Commit

Permalink
fix: change deprecated function puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
joaosouz4dev committed Oct 22, 2020
1 parent 3979cc6 commit eff5660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function initWhatsapp(
const timeout = 2 * 1000;
await Promise.race([
waPage.goto(puppeteerConfig.whatsappUrl, { timeout }).catch(() => {}),
waPage.waitFor('body', { timeout }).catch(() => {}),
waPage.waitForTimeout('body', { timeout }).catch(() => {}),
]);

return waPage;
Expand Down

0 comments on commit eff5660

Please sign in to comment.