pg: PG_REDEEM: only pause if DEBUG=1

Fixes https://github.com/vogler/free-games-claimer/issues/5#issuecomment-1527063819
This commit is contained in:
Ralf Vogler 2023-07-13 11:28:18 +02:00
parent 2e8a731573
commit a90f90afc0

View file

@ -254,7 +254,7 @@ try {
} else { } else {
console.error(` Redeem on ${store} not yet implemented!`); console.error(` Redeem on ${store} not yet implemented!`);
} }
await page2.pause(); if (cfg.debug) await page.pause();
await page2.close(); await page2.close();
} }
notify_game.status = `<a href="${redeem[store]}">${redeem_action}</a> ${code} on ${store}`; notify_game.status = `<a href="${redeem[store]}">${redeem_action}</a> ${code} on ${store}`;