gog: actually wait for login instead of reentering the loop
This commit is contained in:
parent
b0f662479d
commit
518008584f
1 changed files with 1 additions and 0 deletions
1
gog.js
1
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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue