Fixed waiting in infinite scroll

This commit is contained in:
JakubDrobnik 2018-11-21 14:19:34 +01:00
parent 6ee60e203c
commit 34e3077a59

View File

@ -85,7 +85,7 @@ module.exports = async (page, maxHeight, elementToScroll = 'body') => {
// Forget pending resources that didn't finish loading in time // Forget pending resources that didn't finish loading in time
const now = Date.now(); const now = Date.now();
const timeout = 10000; // TODO: use resourceTimeout const timeout = 30000; // TODO: use resourceTimeout
Object.keys(pendingRequests) Object.keys(pendingRequests)
.forEach((requestId) => { .forEach((requestId) => {
if (pendingRequests[requestId] + timeout < now) { if (pendingRequests[requestId] + timeout < now) {