update references

This commit is contained in:
buzz-lightsnack-2007 2024-04-28 16:55:45 +08:00
parent 3b332b6045
commit 6171155de4
2 changed files with 5 additions and 7 deletions

View file

@ -4,7 +4,7 @@ Process the information on the website and display it on screen.
import scraper from "/scripts/external/scraper.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 {
#filter;

View file

@ -12,10 +12,7 @@ export default class watch {
/* Open relevant graphical user interfaces.
*/
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.
@ -29,6 +26,7 @@ export default class watch {
// Begin only when the page is fully loaded.
window.addEventListener(`DOMContentLoaded`, (event) => {
// Begin processing.
console.log(`processing...`);
let PROC = new processor(filter);
});
}
@ -37,8 +35,8 @@ export default class watch {
/* The main action. */
(check.platform()).then((RULES) => {
if (RULES && Object.keys(RULES).length > 0) {
watchman.process(RULES);
watchman.callGUI();
watch.process(RULES);
watch.callGUI();
}
});
}