From a8ab989a7ff6c156a241c65f736b7aefb343850f Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Tue, 10 Oct 2023 22:12:59 +0200 Subject: [PATCH] pg: external: check for 'Link account' besides 'Link game account' --- prime-gaming.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prime-gaming.js b/prime-gaming.js index 66a9594..cf2b532 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -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';