no : in filenames on Windows! closes #21, ref #20

This commit is contained in:
Ralf Vogler 2022-08-28 20:28:56 +01:00
parent 90af31a210
commit 08da100646
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ try {
console.log('Claimed successfully!');
} catch (e) {
console.log(e);
const p = path.resolve(dirs.screenshots, 'epic-games', `${datetime()}.png`);
const p = path.resolve(dirs.screenshots, 'epic-games', `${datetime().replaceAll(':', '.')}.png`);
await page.screenshot({ path: p, fullPage: true });
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?