Skip to content

Commit

Permalink
pg: fixup e2e2830?
Browse files Browse the repository at this point in the history
  • Loading branch information
vogler committed Aug 19, 2023
1 parent e2e2830 commit 7551a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prime-gaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ try {
unlinked_store = await linkAccountButton.getAttribute('aria-label');
console.debug(' LinkAccountButton label:', unlinked_store);
const match = unlinked_store.match(/Link (.*) account/);
if (match.length == 2) unlinked_store = match[1];
if (match && match.length == 2) unlinked_store = match[1];
} else if(await page.locator('text=Link game account').count()) { // epic-games only?
console.error(' Missing account linking (epic-games specific button?):', await page.locator('button[data-a-target="gms-cta"]').innerText()); // TODO needed?
unlinked_store = 'epic-games';
Expand Down

0 comments on commit 7551a6c

Please sign in to comment.