0

我的 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"]
}

你能提供任何帮助吗?

4

1 回答 1

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"
  ]
}
于 2013-01-07T21:55:41.723 回答