Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

manifest.json background service worker vs scripts

{
  "name": "Awesome Test Extension",
  ...
  "background": {
    "service_worker": "background.js" //This field uses the "service_worker" key, which specifies a single JavaScript file. In Manifest V2, this field was called "scripts" and allowed multiple scripts.
  },
  ...
}
Source by developer.chrome.com #
 
PREVIOUS NEXT
Tagged: #background #service #worker #scripts
ADD COMMENT
Topic
Name
6+3 =