From 670262c118928d090fcd555812d8e4dc69472118 Mon Sep 17 00:00:00 2001 From: l-skywalker Date: Thu, 20 Apr 2023 20:12:49 +0200 Subject: [PATCH] fix: update epic confirm text --- epic-games.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epic-games.js b/epic-games.js index 2c98a31..ce60d49 100644 --- a/epic-games.js +++ b/epic-games.js @@ -195,7 +195,7 @@ try { // console.info(' Saved a screenshot of hcaptcha challenge to', p); // console.error(' Got hcaptcha challenge. To avoid it, get a link from https://www.hcaptcha.com/accessibility'); // TODO save this link in config and visit it daily to set accessibility cookie to avoid captcha challenge? }).catch(_ => { }); // may time out if not shown - await page.waitForSelector('text=Thank you for buying'); + await page.waitForSelector('text=Thanks for your order!'); db.data[user][game_id].status = 'claimed'; db.data[user][game_id].time = datetime(); // claimed time overwrites failed/dryrun time console.log(' Claimed successfully!'); @@ -226,4 +226,4 @@ try { } } if (cfg.debug) writeFileSync(path.resolve(cfg.dir.browser, 'cookies.json'), JSON.stringify(await context.cookies())); -await context.close(); +await context.close(); \ No newline at end of file