From 67ccf032e54cd2cd18fa92878f7a0bedf7416279 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 29 Dec 2022 15:38:17 +0100 Subject: [PATCH] eg: catch pending optional promise to avoid time out --- epic-games.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epic-games.js b/epic-games.js index edab185..b943ae7 100644 --- a/epic-games.js +++ b/epic-games.js @@ -86,7 +86,7 @@ try { await page.click('button[type="submit"]'); page.waitForSelector('#h_captcha_challenge_login_prod iframe').then(() => { console.log('Got a captcha! You may have to solve it in the browser if the NopeCHA extension fails to do so.'); - }); + }).catch(_ => { }); // handle MFA, but don't await it page.waitForNavigation({ url: '**/id/login/mfa**'}).then(async () => { console.log('Enter the security code to continue - This appears to be a new device, browser or location. A security code has been sent to your email address at ...');