NOWAIT=1 to fail fast instead of waiting for user input

hitting ctrl-c 3x to abort is annoying...
This commit is contained in:
Ralf Vogler 2025-05-25 16:40:09 +02:00
parent 9285b52017
commit 82d39d30b6
4 changed files with 5 additions and 1 deletions

1
gog.js
View file

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