mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-03-20 01:37:46 +01:00
fix: use __dev__ & __prod__ keys for manifest CSP scripts
This commit is contained in:
parent
6e619edd19
commit
820914063a
@ -8,27 +8,36 @@
|
|||||||
"48": "assets/icons/favicon-48.png",
|
"48": "assets/icons/favicon-48.png",
|
||||||
"128": "assets/icons/favicon-128.png"
|
"128": "assets/icons/favicon-128.png"
|
||||||
},
|
},
|
||||||
|
|
||||||
"description": "Sample description",
|
"description": "Sample description",
|
||||||
"homepage_url": "https://github.com/abhijithvijayan/web-extension-starter",
|
"homepage_url": "https://github.com/abhijithvijayan/web-extension-starter",
|
||||||
"short_name": "Sample Name",
|
"short_name": "Sample Name",
|
||||||
|
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"activeTab",
|
"activeTab",
|
||||||
"storage",
|
"storage",
|
||||||
"http://*/*",
|
"http://*/*",
|
||||||
"https://*/*"
|
"https://*/*"
|
||||||
],
|
],
|
||||||
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
|
|
||||||
|
"__dev__content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
|
||||||
|
"__prod__content_security_policy": "script-src 'self'; object-src 'self'",
|
||||||
|
|
||||||
|
|
||||||
"__chrome|firefox__author": "abhijithvijayan",
|
"__chrome|firefox__author": "abhijithvijayan",
|
||||||
"__opera__developer": {
|
"__opera__developer": {
|
||||||
"name": "abhijithvijayan"
|
"name": "abhijithvijayan"
|
||||||
},
|
},
|
||||||
|
|
||||||
"__firefox__applications": {
|
"__firefox__applications": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "{754FB1AD-CC3B-4856-B6A0-7786F8CA9D17}"
|
"id": "{754FB1AD-CC3B-4856-B6A0-7786F8CA9D17}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"__chrome__minimum_chrome_version": "49",
|
"__chrome__minimum_chrome_version": "49",
|
||||||
"__opera__minimum_opera_version": "36",
|
"__opera__minimum_opera_version": "36",
|
||||||
|
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_popup": "popup.html",
|
"default_popup": "popup.html",
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
@ -41,18 +50,21 @@
|
|||||||
"__chrome|opera__chrome_style": false,
|
"__chrome|opera__chrome_style": false,
|
||||||
"__firefox__browser_style": false
|
"__firefox__browser_style": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"__chrome|opera__options_page": "options.html",
|
"__chrome|opera__options_page": "options.html",
|
||||||
"options_ui": {
|
"options_ui": {
|
||||||
"page": "options.html",
|
"page": "options.html",
|
||||||
"open_in_tab": true,
|
"open_in_tab": true,
|
||||||
"__chrome__chrome_style": false
|
"__chrome__chrome_style": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"background": {
|
"background": {
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"js/background.bundle.js"
|
"js/background.bundle.js"
|
||||||
],
|
],
|
||||||
"__chrome|opera__persistent": false
|
"__chrome|opera__persistent": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"content_scripts": [{
|
"content_scripts": [{
|
||||||
"matches": [
|
"matches": [
|
||||||
"http://*/*",
|
"http://*/*",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user