eg: title now in span instead of div
This commit is contained in:
parent
3b1b900d77
commit
cecc54082f
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ try {
|
|||
await page.click('button:has-text("Continue")');
|
||||
}
|
||||
|
||||
const title = await page.locator('h1 div').first().innerText();
|
||||
const title = await page.locator('h1').first().innerText();
|
||||
const game_id = page.url().split('/').pop();
|
||||
db.data[user][game_id] ||= { title, time: datetime(), url: page.url() }; // this will be set on the initial run only!
|
||||
console.log('Current free game:', title);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue