pg: DLC: ignore timeout if there is no code
https://github.com/vogler/free-games-claimer/issues/208#issuecomment-1868317276
This commit is contained in:
parent
e078a1540a
commit
ace4ef8303
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ try {
|
|||
dlc_unlinked[unlinked_store] ??= [];
|
||||
dlc_unlinked[unlinked_store].push(title);
|
||||
} else {
|
||||
const code = await page.inputValue('input[type="text"]');
|
||||
const code = await page.inputValue('input[type="text"]').catch(_ => undefined);
|
||||
console.log(' Code to redeem game:', chalk.blue(code));
|
||||
db.data[user][title].code = code;
|
||||
db.data[user][title].status = 'claimed';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue