NOWAIT=1 to fail fast instead of waiting for user input
hitting ctrl-c 3x to abort is annoying...
This commit is contained in:
parent
9285b52017
commit
82d39d30b6
4 changed files with 5 additions and 1 deletions
1
gog.js
1
gog.js
|
|
@ -47,6 +47,7 @@ try {
|
|||
await Promise.any([signIn.waitFor(), page.waitForSelector('#menuUsername')]);
|
||||
while (await signIn.isVisible()) {
|
||||
console.error('Not signed in anymore.');
|
||||
if (cfg.nowait) process.exit(1);
|
||||
await signIn.click();
|
||||
// it then creates an iframe for the login
|
||||
await page.waitForSelector('#GalaxyAccountsFrameContainer iframe'); // TODO needed?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue