move scripts for non-extension pages
This commit is contained in:
parent
4d20cdec8d
commit
9dfdb3f44b
5 changed files with 5 additions and 6 deletions
|
@ -1,22 +0,0 @@
|
|||
/* processor.js
|
||||
Process the information on the website and display it on screen.
|
||||
*/
|
||||
|
||||
// const inject = ((await import(chrome.runtime.getURL("scripts/outside/inject.js"))).default);
|
||||
const scraper = (await import(chrome.runtime.getURL("scripts/outside/scraper.js"))).default;
|
||||
|
||||
export default class processor {
|
||||
#filter;
|
||||
|
||||
async scrape (fields) {
|
||||
this.data = new scraper ((fields) ? fields : this.targets);
|
||||
console.log(this.data);
|
||||
}
|
||||
|
||||
constructor (filter) {
|
||||
this.#filter = filter;
|
||||
|
||||
this.targets = this.#filter[`data`];
|
||||
this.scrape();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue