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

View file

@ -84,7 +84,7 @@ try {
}).catch(_ => { });
} else {
console.log('Waiting for you to login in the browser.');
notify('epic-games: no longer signed in and not enough options set for automatic login.');
await notify('epic-games: no longer signed in and not enough options set for automatic login.');
if (cfg.headless) {
console.log('Run `SHOW=1 node epic-games` to login in the opened browser.');
await context.close(); // finishes potential recording