refactor: remove background script and update permissions

This commit is contained in:
2025-06-17 00:06:03 +03:00
parent 01a71fcc82
commit 8a3d8d9122
3 changed files with 10 additions and 7 deletions

View File

View File

@@ -4,18 +4,21 @@
"version": "1.0", "version": "1.0",
"description": "Highlight text on web pages", "description": "Highlight text on web pages",
"default_locale": "en", "default_locale": "en",
"permissions": ["storage", "scripting", "activeTab"], "permissions": [
"storage"
],
"action": { "action": {
"default_popup": "popup/popup.html", "default_popup": "popup/popup.html",
"default_icon": "icons/icon128.png" "default_icon": "icons/icon128.png"
}, },
"background": {
"service_worker": "background.js"
},
"content_scripts": [ "content_scripts": [
{ {
"matches": ["<all_urls>"], "matches": [
"js": ["content.js"], "<all_urls>"
],
"js": [
"content.js"
],
"run_at": "document_idle" "run_at": "document_idle"
} }
], ],
@@ -23,4 +26,4 @@
"48": "icons/icon48.png", "48": "icons/icon48.png",
"128": "icons/icon128.png" "128": "icons/icon128.png"
} }
} }

View File