fix: add function keyword
This commit is contained in:
@@ -428,7 +428,7 @@ async function clickNextPagination(selector, scrapedData, limit) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
window.scrollDown = async (selector, limit) {
|
window.scrollDown = async function(selector, limit) {
|
||||||
let previousHeight = 0;
|
let previousHeight = 0;
|
||||||
let itemsLoaded = 0;
|
let itemsLoaded = 0;
|
||||||
|
|
||||||
@@ -447,7 +447,7 @@ async function clickNextPagination(selector, scrapedData, limit) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.scrollUp = async (selector, limit) {
|
window.scrollUp = async function(selector, limit) {
|
||||||
let previousHeight = 0;
|
let previousHeight = 0;
|
||||||
let itemsLoaded = 0;
|
let itemsLoaded = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user