From a61c54269f5a285828b41470abb7346d155942c2 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 11 May 2024 23:18:09 +0800 Subject: [PATCH] pass the scraper's options to the corresponding function in the scraper module --- scripts/external/processor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/external/processor.js b/scripts/external/processor.js index f4a61fc..a776247 100644 --- a/scripts/external/processor.js +++ b/scripts/external/processor.js @@ -11,8 +11,8 @@ import {URLs} from "/scripts/utils/URLs.js"; export default class processor { #filter; - async scrape (fields) { - this.product.details = new scraper ((fields) ? fields : this.targets); + async scrape (fields, options) { + this.product.details = new scraper (((fields) ? fields : this.targets), options); // Read product data and gather the SHA512 hash. await this.product.read();