From a90f90afc098b3043ee1ef90e57164b748d3b6dc Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 13 Jul 2023 11:28:18 +0200 Subject: [PATCH] pg: PG_REDEEM: only pause if DEBUG=1 Fixes https://github.com/vogler/free-games-claimer/issues/5#issuecomment-1527063819 --- prime-gaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prime-gaming.js b/prime-gaming.js index 695951e..462fe49 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -254,7 +254,7 @@ try { } else { console.error(` Redeem on ${store} not yet implemented!`); } - await page2.pause(); + if (cfg.debug) await page.pause(); await page2.close(); } notify_game.status = `${redeem_action} ${code} on ${store}`;