pg: external: check for 'Link account' besides 'Link game account'
This commit is contained in:
parent
9fc68b881f
commit
a8ab989a7f
1 changed files with 2 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue