Skip to content

Commit 84c097a

Browse files
committed
Update index.js
1 parent f63ccd2 commit 84c097a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const initializeCrawler = async () => {
3737
});
3838

3939
await Promise.race([
40-
page.waitForNetworkIdle({ idleTime: 500, concurrency: 3 }),
40+
page.waitForLoadState(`networkidle`, { timeout: 3000 }),
4141
new Promise((_, reject) =>
4242
setTimeout(() => reject(new Error("Timeout")), 10000),
4343
),

0 commit comments

Comments
 (0)