From 518008584f795dbef7b8c38451237ec90d18971f Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Wed, 22 Feb 2023 00:26:48 +0100 Subject: [PATCH] gog: actually wait for login instead of reentering the loop --- gog.js | 1 + 1 file changed, 1 insertion(+) 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!