removed last unnecessary changes
This commit is contained in:
parent
9a697bf1e0
commit
12476de69c
1 changed files with 3 additions and 3 deletions
|
|
@ -299,7 +299,7 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/vogler/free-games-claimer/issues/55
|
// https://github.com/vogler/free-games-claimer/issues/55
|
||||||
if (cfg.pg_claimdlc) {
|
if (1) {
|
||||||
console.log('Trying to claim in-game content...');
|
console.log('Trying to claim in-game content...');
|
||||||
await page.click('button[data-type="InGameLoot"]');
|
await page.click('button[data-type="InGameLoot"]');
|
||||||
const loot = page.locator('div[data-a-target="offer-list-IN_GAME_LOOT"]');
|
const loot = page.locator('div[data-a-target="offer-list-IN_GAME_LOOT"]');
|
||||||
|
|
@ -387,7 +387,7 @@ try {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} finally {
|
} finally {
|
||||||
await page.goto(URL_CLAIM, { waitUntil: "domcontentloaded" });
|
await page.goto(URL_CLAIM, { waitUntil: 'domcontentloaded' });
|
||||||
await page.click('button[data-type="InGameLoot"]');
|
await page.click('button[data-type="InGameLoot"]');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -396,7 +396,7 @@ try {
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
process.exitCode ||= 1;
|
process.exitCode ||= 1;
|
||||||
console.error("--- Exception:");
|
console.error('--- Exception:');
|
||||||
console.error(error); // .toString()?
|
console.error(error); // .toString()?
|
||||||
if (error.message && process.exitCode != 130)
|
if (error.message && process.exitCode != 130)
|
||||||
notify(`prime-gaming failed: ${error.message.split("\n")[0]}`);
|
notify(`prime-gaming failed: ${error.message.split("\n")[0]}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue