mirror of
https://github.com/davidjohnbarton/crawler-google-places.git
synced 2025-12-12 16:38:45 +00:00
Fixed waiting in infinite scroll
This commit is contained in:
parent
6ee60e203c
commit
34e3077a59
|
|
@ -85,7 +85,7 @@ module.exports = async (page, maxHeight, elementToScroll = 'body') => {
|
|||
|
||||
// Forget pending resources that didn't finish loading in time
|
||||
const now = Date.now();
|
||||
const timeout = 10000; // TODO: use resourceTimeout
|
||||
const timeout = 30000; // TODO: use resourceTimeout
|
||||
Object.keys(pendingRequests)
|
||||
.forEach((requestId) => {
|
||||
if (pendingRequests[requestId] + timeout < now) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user