pg: external: check for 'Link account' besides 'Link game account'

This commit is contained in:
Ralf Vogler 2023-10-10 22:12:59 +02:00
parent 9fc68b881f
commit a8ab989a7f

View file

@ -162,7 +162,8 @@ try {
db.data[user][title] ||= { title, time: datetime(), url, store };
const notify_game = { title, url };
notify_games.push(notify_game); // status is updated below
if (await page.locator('div:has-text("Link game account")').count()) {
if (await page.locator('div:has-text("Link game account")').count() // TODO still needed? epic games store just has 'Link account' as the button text now.
|| await page.locator('div:has-text("Link account")').count()) {
console.error(' Account linking is required to claim this offer!');
notify_game.status = `failed: need account linking for ${store}`;
db.data[user][title].status = 'failed: need account linking';