📜  manifest.json 后台服务工作者与脚本 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.461000             🧑  作者: Mango

代码示例1
{
  "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.
  },
  ...
}