From 34e3077a590397da2c965dfff83a9c7652203b03 Mon Sep 17 00:00:00 2001 From: JakubDrobnik Date: Wed, 21 Nov 2018 14:19:34 +0100 Subject: [PATCH] Fixed waiting in infinite scroll --- src/infinite_scroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infinite_scroll.js b/src/infinite_scroll.js index 97720c9..4bd05a6 100644 --- a/src/infinite_scroll.js +++ b/src/infinite_scroll.js @@ -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) {