From bc8a89f365c116a2bcbaff806194c0ae1dee4c07 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 27 Apr 2023 19:14:48 +0200 Subject: [PATCH] log 'DRYRUN=1 -> Skip order!' --- epic-games.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/epic-games.js b/epic-games.js index ce60d49..3819083 100644 --- a/epic-games.js +++ b/epic-games.js @@ -175,7 +175,10 @@ try { }).catch(_ => { }); if (cfg.debug) await page.pause(); - if (cfg.dryrun) continue; + if (cfg.dryrun) { + console.log(' DRYRUN=1 -> Skip order!'); + continue; + } // Playwright clicked before button was ready to handle event, https://github.com/vogler/free-games-claimer/issues/84#issuecomment-1474346591 await iframe.locator('button:has-text("Place Order"):not(:has(.payment-loading--loading))').click({ delay: 11 });