diff --git a/epic-claimer-new.js b/epic-claimer-new.js index 290e66e..2fef517 100644 --- a/epic-claimer-new.js +++ b/epic-claimer-new.js @@ -151,7 +151,7 @@ const ensureLoggedIn = async (page, context) => { const isChallenge = async () => { const cfFrame = page.locator('iframe[title*="Cloudflare"], iframe[src*="challenges"]'); const cfText = page.locator('text=Verify you are human'); - return (await cfFrame.count()) > 0 || (await cfText.count()) > 0; + return await cfFrame.count() > 0 || await cfText.count() > 0; }; while (!await isLoggedIn()) {