diff --git a/gog.js b/gog.js index a496130..5e10dd1 100644 --- a/gog.js +++ b/gog.js @@ -83,6 +83,7 @@ try { process.exit(1); } } + await page.waitForSelector('#menuUsername'); if (!cfg.debug) context.setDefaultTimeout(cfg.timeout); } const user = await page.locator('#menuUsername').first().textContent(); // innerText is uppercase due to styling!