mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
f37c7bc653
Stacked on https://github.com/facebook/react/pull/30610 and whats under it. See [last commit](https://github.com/facebook/react/pull/30636/commits/248ddba18608e1bb5ef14c823085a7ff9d7a54a3). Now, we are using [`chrome.storage`](https://developer.chrome.com/docs/extensions/reference/api/storage) to persist settings for the browser extension across different sessions. Once settings are updated from the UI, the `Store` will emit `settingsUpdated` event, and we are going to persist them via `chrome.storage.local.set` in `main/index.js`. When hook is being injected, we are going to pass a `Promise`, which is going to be resolved after the settings are read from the storage via `chrome.storage.local.get` in `hookSettingsInjector.js`.
70 lines
1.4 KiB
JSON
70 lines
1.4 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "React Developer Tools",
|
|
"description": "Adds React debugging tools to the Firefox Developer Tools.",
|
|
"version": "5.3.1",
|
|
"browser_specific_settings": {
|
|
"gecko": {
|
|
"id": "@react-devtools",
|
|
"strict_min_version": "128.0"
|
|
}
|
|
},
|
|
"icons": {
|
|
"16": "icons/16-production.png",
|
|
"32": "icons/32-production.png",
|
|
"48": "icons/48-production.png",
|
|
"128": "icons/128-production.png"
|
|
},
|
|
"action": {
|
|
"default_icon": {
|
|
"16": "icons/16-disabled.png",
|
|
"32": "icons/32-disabled.png",
|
|
"48": "icons/48-disabled.png",
|
|
"128": "icons/128-disabled.png"
|
|
},
|
|
"default_popup": "popups/disabled.html"
|
|
},
|
|
"devtools_page": "main.html",
|
|
"content_security_policy": {
|
|
"extension_pages": "script-src 'self'; object-src 'self'"
|
|
},
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": [
|
|
"main.html",
|
|
"panel.html",
|
|
"build/*.js",
|
|
"build/*.js.map"
|
|
],
|
|
"matches": [
|
|
"<all_urls>"
|
|
],
|
|
"extension_ids": []
|
|
}
|
|
],
|
|
"background": {
|
|
"scripts": [
|
|
"build/background.js"
|
|
]
|
|
},
|
|
"permissions": [
|
|
"scripting",
|
|
"storage",
|
|
"tabs"
|
|
],
|
|
"host_permissions": [
|
|
"<all_urls>"
|
|
],
|
|
"content_scripts": [
|
|
{
|
|
"matches": [
|
|
"<all_urls>"
|
|
],
|
|
"js": [
|
|
"build/prepareInjection.js"
|
|
],
|
|
"run_at": "document_start"
|
|
}
|
|
]
|
|
}
|