diff --git a/epic-games.js b/epic-games.js index bd085e9..565de90 100644 --- a/epic-games.js +++ b/epic-games.js @@ -316,7 +316,7 @@ try { } }; - const hasCaptcha = (await page.locator('.h_captcha_challenge iframe').count() > 0) || (await page.locator('text=Incorrect response').count() > 0); + const hasCaptcha = await page.locator('.h_captcha_challenge iframe').count() > 0 || await page.locator('text=Incorrect response').count() > 0; if (hasCaptcha) { console.warn('Captcha/Incorrect response detected. Please solve manually in the browser.'); await notify('epic-games: captcha encountered; please solve manually in browser.');