Skip to content

Commit

Permalink
eg: title now in span instead of div
Browse files Browse the repository at this point in the history
  • Loading branch information
vogler committed Jan 25, 2023
1 parent 3b1b900 commit cecc540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epic-games.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cecc540

Please sign in to comment.