- Add "alarms" permission to manifest — chrome.alarms.create() was throwing "Cannot read properties of undefined" because the permission was missing; also removed invalid "sockets" permission (not a valid MV3 perm) - Remove all inline event handlers from popup.html (onclick, ondragover, ondragleave, ondrop, onchange) — MV3 CSP blocks inline JS entirely; all handlers moved to popup.js addEventListener() calls - Replace inline onclick="removeFile(i)" on dynamically generated remove buttons with data-idx attribute + delegated click listener on the list container — same CSP fix for runtime-generated elements Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
785 B
JSON
36 lines
785 B
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "Dragon Wind Uploader",
|
|
"version": "1.0.0",
|
|
"description": "Fast dual-mode file upload for broadcast professionals. HTTP for reliability, UDP for speed.",
|
|
"permissions": [
|
|
"storage",
|
|
"activeTab",
|
|
"scripting",
|
|
"alarms"
|
|
],
|
|
"host_permissions": [
|
|
"https://*/*",
|
|
"http://localhost:3000/*",
|
|
"http://*/*"
|
|
],
|
|
"icons": {
|
|
"16": "images/icon-16.png",
|
|
"48": "images/icon-48.png",
|
|
"128": "images/icon-128.png"
|
|
},
|
|
"action": {
|
|
"default_popup": "popup.html",
|
|
"default_title": "Dragon Wind Upload"
|
|
},
|
|
"background": {
|
|
"service_worker": "background.js"
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["<all_urls>"],
|
|
"js": ["content.js"],
|
|
"run_at": "document_end"
|
|
}
|
|
]
|
|
}
|