From b6f2abccc2c50ba118b399267b4fdf128313a75f Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:22:32 +0800 Subject: [PATCH] update script type to module --- manifest.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index ec054ab..bcc739c 100644 --- a/manifest.json +++ b/manifest.json @@ -11,10 +11,14 @@ "default_popup": "gui/popup.htm" }, + "background": { + "service_worker": "scripts/ShopAI.js", + "type": "module" + }, "content_scripts": [ { "matches": ["http://*/*", "https://*/*"], - "js": ["scripts/shopAI.js"] + "js": ["scripts/watchman.js"] } ],