feat(extension): migrate chrome extension v2 to v3

This commit is contained in:
genie
2023-03-16 13:24:55 +08:00
parent 8e477c9d16
commit b67ade3610
7 changed files with 723 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "DocsGPT - Documentation AI butler",
"version": "0.0.1",
"manifest_version": 2,
"manifest_version": 3,
"description": "AI assistant for developers, that helps you answer your questions about the documentation you are reading.",
"icons": {
"16": "icons/icon16.png",
@@ -10,12 +10,19 @@
},
"default_locale": "en",
"background": {
"page": "src/bg/background.html",
"persistent": true
"service_worker": "src/bg/service-worker.js"
},
"action": {
"default_title": "DocsGPT - Documentation AI butler",
"default_popup": "popup.html"
},
"permissions": ["activeTab", "storage"],
"browser_action": {
"default_popup": "popup.html"
}
"host_permissions": [
"*://*/*"
],
"content_scripts": [{
"js": ["popup.js"],
"matches": ["https://github.com/*"]
}]
}