Merge pull request #18 from nileshtrivedi/firefox-compat

Add extension id to make storage API work on Firefox in dev.
This commit is contained in:
Nilesh 2020-08-09 13:15:54 +05:30 committed by GitHub
commit 3d4bdaefef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 27 deletions

View File

@ -1,28 +1,31 @@
{ {
"name": "Better", "name": "Better",
"version": "0.0.1", "version": "0.0.1",
"icons": { "icons": {
"48": "images/48.png", "48": "images/48.png",
"128": "images/128.png" "128": "images/128.png"
}, },
"description": "Find better products & services than the one you're currently visiting", "browser_specific_settings": {
"permissions": ["activeTab", "storage"], "gecko": {
"background": { "id": "{02d8a7bd-79ba-4808-8e11-f3e19af43f90}"
"scripts": ["background.js"], }
"persistent": false },
}, "description": "Find better products & services than the one you're currently visiting",
"content_scripts": [ "permissions": ["activeTab", "storage"],
{ "background": {
"matches": ["https://*/*", "http://*/*"], "scripts": ["background.js"],
"js": ["contentscript.js"] "persistent": false
} },
], "content_scripts": [
"manifest_version": 2, {
"options_ui": { "matches": ["https://*/*", "http://*/*"],
"page": "options.html", "js": ["contentscript.js"]
"open_in_tab": false }
}, ],
"web_accessible_resources": [ "manifest_version": 2,
"defaultlist.json" "options_ui": {
] "page": "options.html",
} "open_in_tab": false
},
"web_accessible_resources": ["defaultlist.json"]
}