chore: lint

This commit is contained in:
karishmas6
2024-08-13 22:21:17 +05:30
parent 5874f297b1
commit 00d32571fb

View File

@@ -278,7 +278,7 @@ async function scrollDownToLoadMore(selector, limit) {
* @param {boolean} [config.flexible=false] - Whether to use flexible matching for field selectors * @param {boolean} [config.flexible=false] - Whether to use flexible matching for field selectors
* @returns {Array.<Array.<Object>>} Array of arrays of scraped items, one sub-array per list * @returns {Array.<Array.<Object>>} Array of arrays of scraped items, one sub-array per list
*/ */
window.scrapeList = function({ listSelector, fields }) { window.scrapeList = function ({ listSelector, fields }) {
// Get all parent elements matching the listSelector // Get all parent elements matching the listSelector
const parentElements = Array.from(document.querySelectorAll(listSelector)); const parentElements = Array.from(document.querySelectorAll(listSelector));
@@ -311,7 +311,7 @@ async function scrollDownToLoadMore(selector, limit) {
scrapedData.push(record); scrapedData.push(record);
}); });
return scrapedData; return scrapedData;
}; };
/** /**
* Gets all children of the elements matching the listSelector, * Gets all children of the elements matching the listSelector,
@@ -358,5 +358,4 @@ async function scrollDownToLoadMore(selector, limit) {
return results; return results;
}; };
})(window); })(window);