diff --git a/scripts/external/processor.js b/scripts/external/processor.js index bee1f6b..b42e06e 100644 --- a/scripts/external/processor.js +++ b/scripts/external/processor.js @@ -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; diff --git a/scripts/external/watch.js b/scripts/external/watch.js index 1b2ad87..19be044 100644 --- a/scripts/external/watch.js +++ b/scripts/external/watch.js @@ -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(); } }); }