From 12476de69cbaa7f555730235c70b583708cbedfa Mon Sep 17 00:00:00 2001 From: zockol Date: Mon, 25 Sep 2023 10:13:00 +0200 Subject: [PATCH] removed last unnecessary changes --- prime-gaming.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prime-gaming.js b/prime-gaming.js index 3713401..f80b77a 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -299,7 +299,7 @@ try { } // https://github.com/vogler/free-games-claimer/issues/55 - if (cfg.pg_claimdlc) { + if (1) { console.log('Trying to claim in-game content...'); await page.click('button[data-type="InGameLoot"]'); const loot = page.locator('div[data-a-target="offer-list-IN_GAME_LOOT"]'); @@ -387,7 +387,7 @@ try { } catch (error) { console.error(error); } finally { - await page.goto(URL_CLAIM, { waitUntil: "domcontentloaded" }); + await page.goto(URL_CLAIM, { waitUntil: 'domcontentloaded' }); await page.click('button[data-type="InGameLoot"]'); } } @@ -396,7 +396,7 @@ try { } } catch (error) { process.exitCode ||= 1; - console.error("--- Exception:"); + console.error('--- Exception:'); console.error(error); // .toString()? if (error.message && process.exitCode != 130) notify(`prime-gaming failed: ${error.message.split("\n")[0]}`);