如何将Chrome应用更新到清单2

时间:2012-09-14 01:28:21

标签: google-chrome-extension manifest

我的Chrome扩展程序就是当您点击它时,它所做的就是打开一个URL。它曾经与web_url一起使用,但web_url无法使用清单版本2。 这是我目前的扩展清单:

"name": "PTD",
"version": "2.7.8",
"manifest_version": 2,
"description": "Pokemon Tower Defense 1 and 2!",
"icons": {"128": "128.png"},
"default_locale": "en",
"app": {
   "urls": ["http://gamecorneronline.com/ptd.html"],
   "launch": {
      "web_url": "http://gamecorneronline.com/ptd.html"
    },
   "permissions": ["unlimitedStorage","notifications"]
}

你能提供任何帮助吗?

1 个答案:

答案 0 :(得分:0)

想出来。无论如何,感谢您的帮助:

{
  "name": "PTD1/PTD2",
  "description": "Play both PTD1 and PTD2!",
  "version": "3.2",
  "manifest_version": 2,
  "app": {
    "urls": [
      "http://example.com/",
    ],
    "launch": {
      "web_url": "http://example.com/"
    }
  },
  "icons": {
    "128": "icon_128.png"
  },
  "permissions": [
    "unlimitedStorage",
    "notifications"
  ]
}
相关问题