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

@ -132,7 +132,7 @@ try {
await page.goto(URL_CLAIM, {waitUntil: 'domcontentloaded'});
await page.click('button[data-type="Game"]');
} while (n);
const p = path.resolve(dirs.screenshots, 'prime-gaming', `${datetime()}.png`);
const p = path.resolve(dirs.screenshots, 'prime-gaming', `${datetime().replaceAll(':', '.')}.png`);
// await page.screenshot({ path: p, fullPage: true });
await page.locator(games_sel).screenshot({ path: p });
} catch(error) {