await notify before process.exit, #69

This commit is contained in:
Ralf Vogler 2023-02-24 00:08:35 +01:00
parent 114631da4d
commit 73a7cffd47
4 changed files with 9 additions and 8 deletions

2
gog.js
View file

@ -72,7 +72,7 @@ try {
await page.waitForSelector('#menuUsername')
} else {
console.log('Waiting for you to login in the browser.');
notify('gog: no longer signed in and not enough options set for automatic login.');
await notify('gog: no longer signed in and not enough options set for automatic login.');
if (cfg.headless) {
console.log('Run `SHOW=1 node gog` to login in the opened browser.');
await context.close();