gog: actually wait for login instead of reentering the loop

This commit is contained in:
Ralf Vogler 2023-02-22 00:26:48 +01:00
parent b0f662479d
commit 518008584f

1
gog.js
View file

@ -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!