Skip to content

Commit e0f15e7

Browse files
committed
fix(manifest): correct file paths and strengthen CSP for extension compatibility
1 parent 952e4c6 commit e0f15e7

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

manifest.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
],
3030

3131
"background": {
32-
"service_worker": "src/background/background-service.js",
32+
"service_worker": "background.js",
3333
"type": "module"
3434
},
3535

@@ -42,14 +42,14 @@
4242
"moz-extension://*/*",
4343
"edge://*/*"
4444
],
45-
"js": ["src/content/content-manager.js"],
46-
"css": ["src/styles/content-styles.css"],
45+
"js": ["content.js"],
46+
"css": ["popup.css"],
4747
"run_at": "document_end"
4848
}
4949
],
5050

5151
"action": {
52-
"default_popup": "src/popup/popup.html",
52+
"default_popup": "popup.html",
5353
"default_title": "GenAI Browser Tool",
5454
"default_icon": {
5555
"16": "assets/icons/icon-16.png",
@@ -66,22 +66,28 @@
6666
"128": "assets/icons/icon-128.png"
6767
},
6868

69-
"options_page": "src/pages/options.html",
69+
"options_page": "options.html",
70+
71+
"offscreen": {
72+
"url": "offscreen.html",
73+
"reasons": ["DOM_PARSER"],
74+
"justification": "Parse DOM content for AI processing"
75+
},
7076

7177
"web_accessible_resources": [
7278
{
7379
"resources": [
74-
"src/ui/*",
7580
"assets/*",
76-
"src/styles/*",
77-
"src/popup/*"
81+
"popup.css",
82+
"options.css",
83+
"*.js.map"
7884
],
7985
"matches": ["<all_urls>"]
8086
}
8187
],
8288

8389
"content_security_policy": {
84-
"extension_pages": "script-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline'; connect-src 'self' https://api.openai.com https://api.anthropic.com https://generativelanguage.googleapis.com;"
90+
"extension_pages": "script-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline'; connect-src 'self' https://api.openai.com https://api.anthropic.com https://generativelanguage.googleapis.com https://api.cohere.ai https://api.huggingface.co; img-src 'self' data: https:;"
8591
},
8692

8793
"commands": {

0 commit comments

Comments
 (0)