-
-
Notifications
You must be signed in to change notification settings - Fork 15
Unify manifest.json files #186
Copy link
Copy link
Open
Labels
code qualityImproving the code for the code's sake…Improving the code for the code's sake…enhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
code qualityImproving the code for the code's sake…Improving the code for the code's sake…enhancementNew feature or requestNew feature or request
Background
#68 has been solved, but we still have multiple
manifest.jsonfiles that are a burden to maintain.Proposed solution
Ease maintenance and unify the files, MDN recommends just specifying all properties in a single manifest.json:
{ "name": "Demo of service worker + event page", "version": "1", "manifest_version": 3, "background": { "scripts": ["background.js"], "service_worker": "background.js" } }Also:
chromeServiceWorker.js(renamed tobackgroundServiceWorker.jsor even justbackground.js) also for Firefox, so testing is easier and you have less differences between browsers.Alternatives
Keep as is.
Additional context
Docs: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background