diff --git a/manifest.json b/manifest.json index d3502f2..122698a 100644 --- a/manifest.json +++ b/manifest.json @@ -18,7 +18,7 @@ "content_scripts": [ { "matches": ["http://*/*", "https://*/*"], - "js": ["scripts/external/watchman.js"] + "js": ["scripts/external/watch.js"] } ], "web_accessible_resources": [ diff --git a/scripts/external/watchman.js b/scripts/external/watch.js similarity index 95% rename from scripts/external/watchman.js rename to scripts/external/watch.js index 4cf94bb..f5aa45c 100644 --- a/scripts/external/watchman.js +++ b/scripts/external/watch.js @@ -29,13 +29,13 @@ let main = (async () => { console.log("ShopAI works here! Click on the button in the toolbar or website to start."); // Show loading screen while the load is incomplete. - // Set the icon to indicate that it's active. - - // Begin. let PROC = new processor(matches); - + + // Begin only when the page is fully loaded. window.addEventListener(`load`, (event) => { + // Remove the loading screen. + }); }