From c87deb393eec26b78d7a30bded8859c183ebb278 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Fri, 2 Aug 2024 14:02:33 +0200 Subject: [PATCH] pg: DLC: forgot to await scrollUntilStable, closes #356 --- prime-gaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prime-gaming.js b/prime-gaming.js index b902712..88ae542 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -352,7 +352,7 @@ try { await loot.waitFor(); process.stdout.write('Loading all DLCs on page...'); - scrollUntilStable(() => loot.locator('[data-a-target="item-card"]').count()) + await scrollUntilStable(() => loot.locator('[data-a-target="item-card"]').count()) console.log('\nNumber of already claimed DLC:', await loot.locator('p:has-text("Collected")').count());