reattempt working with manifest V3

This commit is contained in:
buzzcode2007 2024-03-20 13:38:34 +08:00
parent 2e20e54941
commit bd6000978b

View file

@ -1,18 +1,18 @@
{ {
"manifest_version": 2, "manifest_version": 3,
"name": "__MSG_manifest_name__", "name": "__MSG_manifest_name__",
"description": "__MSG_manifest_description__", "description": "__MSG_manifest_description__",
"version": "0", "version": "0",
"permissions": [ "tabs", "activeTab", "storage"], "permissions": [ "tabs", "activeTab", "storage"],
"browser_action": { "action": {
"default_icon": "gui/icons/logo_no_tiny.png", "default_icon": "gui/icons/logo_no_tiny.png",
"default_popup": "gui/popup.htm" "default_popup": "gui/popup.htm"
}, },
"background": { "background": {
"scripts": ["scripts/ShopAI.js"], "service_worker": "scripts/ShopAI.js",
"type": "module" "type": "module"
}, },
"content_scripts": [ "content_scripts": [
@ -21,13 +21,13 @@
"js": ["scripts/watchman.js"] "js": ["scripts/watchman.js"]
} }
], ],
"icons": { "icons": {
"1024": "gui/icons/logo.png", "1024": "gui/icons/logo.png",
"512": "gui/icons/logo_tiny.png" "512": "gui/icons/logo_tiny.png"
}, },
"options_page": "gui/popup.htm", "options_page": "gui/popup.htm",
"default_locale": "en" "default_locale": "en"
} }