- commit
- f19fec8557110d55cfd815aac51ece6fd8437971
- parent
- afaa6eca65ebeae537e74ce128b2a539235fb279
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-04-25 22:08
update to manifest v3
Diffstat
| M | manifest.json | 9 | +++++---- |
| M | src/bg.js | 2 | +- |
2 files changed, 6 insertions, 5 deletions
diff --git a/manifest.json b/manifest.json
@@ -1,11 +1,11 @@ 1 1 {2 -1 "manifest_version": 2,-1 2 "manifest_version": 3, 3 3 "name": "xiHeaders", 4 4 "author": "Tobias Bengfort", 5 5 "homepage_url": "https://github.com/xi/xiHeaders", 6 6 "description": "modify request headers", 7 7 "version": "0.0.0",8 -1 "browser_action": {-1 8 "action": { 9 9 "default_title": "xiHeaders" 10 10 }, 11 11 "icons": { @@ -14,7 +14,6 @@ 14 14 }, 15 15 "background": { 16 16 "scripts": ["src/bg.js"],17 -1 "persistent": false,18 17 "type": "module" 19 18 }, 20 19 "options_ui": { @@ -24,7 +23,9 @@ 24 23 "permissions": [ 25 24 "storage", 26 25 "webRequest",27 -1 "webRequestBlocking",-1 26 "webRequestBlocking" -1 27 ], -1 28 "host_permissions": [ 28 29 "<all_urls>" 29 30 ], 30 31 "browser_specific_settings": {
diff --git a/src/bg.js b/src/bg.js
@@ -38,6 +38,6 @@ browser.webRequest.onBeforeSendHeaders.addListener(async details => {
38 38 types: ['main_frame'],
39 39 }, ['blocking', 'requestHeaders']);
40 40
41 -1 browser.browserAction.onClicked.addListener(() => {
-1 41 browser.action.onClicked.addListener(() => {
42 42 browser.runtime.openOptionsPage();
43 43 });