From 3cad442a4082c15f22e4e786901f41fc2d924eed Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:15:40 +0800 Subject: [PATCH] rename `watchman` to `watch` for simplicity --- manifest.json | 2 +- scripts/external/{watchman.js => watch.js} | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename scripts/external/{watchman.js => watch.js} (95%) 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. + }); }