update references
This commit is contained in:
parent
3b332b6045
commit
6171155de4
2 changed files with 5 additions and 7 deletions
2
scripts/external/processor.js
vendored
2
scripts/external/processor.js
vendored
|
@ -4,7 +4,7 @@ Process the information on the website and display it on screen.
|
||||||
|
|
||||||
import scraper from "/scripts/external/scraper.js";
|
import scraper from "/scripts/external/scraper.js";
|
||||||
import product from "/scripts/product.js";
|
import product from "/scripts/product.js";
|
||||||
import injection from "/scripts/GUI/inject.js"
|
import injection from "/scripts/GUI/entrypoints/inject.js"
|
||||||
|
|
||||||
export default class processor {
|
export default class processor {
|
||||||
#filter;
|
#filter;
|
||||||
|
|
10
scripts/external/watch.js
vendored
10
scripts/external/watch.js
vendored
|
@ -12,10 +12,7 @@ export default class watch {
|
||||||
/* Open relevant graphical user interfaces.
|
/* Open relevant graphical user interfaces.
|
||||||
*/
|
*/
|
||||||
static callGUI() {
|
static callGUI() {
|
||||||
// Open the side panel if set by default.
|
|
||||||
read([`settings`,`behavior`,`autoOpen`]).then((result) => {
|
|
||||||
if (result) {chrome.runtime.sendMessage('sidebar_open')};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Act on the page.
|
/* Act on the page.
|
||||||
|
@ -29,6 +26,7 @@ export default class watch {
|
||||||
// Begin only when the page is fully loaded.
|
// Begin only when the page is fully loaded.
|
||||||
window.addEventListener(`DOMContentLoaded`, (event) => {
|
window.addEventListener(`DOMContentLoaded`, (event) => {
|
||||||
// Begin processing.
|
// Begin processing.
|
||||||
|
console.log(`processing...`);
|
||||||
let PROC = new processor(filter);
|
let PROC = new processor(filter);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -37,8 +35,8 @@ export default class watch {
|
||||||
/* The main action. */
|
/* The main action. */
|
||||||
(check.platform()).then((RULES) => {
|
(check.platform()).then((RULES) => {
|
||||||
if (RULES && Object.keys(RULES).length > 0) {
|
if (RULES && Object.keys(RULES).length > 0) {
|
||||||
watchman.process(RULES);
|
watch.process(RULES);
|
||||||
watchman.callGUI();
|
watch.callGUI();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue