Google chrome extension 如何将chrome应用程序更新到清单2

Google chrome extension 如何将chrome应用程序更新到清单2,google-chrome-extension,manifest,Google Chrome Extension,Manifest,我的chrome扩展就是其中之一,当你点击它时,它所做的只是打开一个URL。它过去在web\u-url上运行良好,但web\u-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"

我的chrome扩展就是其中之一,当你点击它时,它所做的只是打开一个URL。它过去在
web\u-url
上运行良好,但
web\u-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"]
}

你能帮点忙吗?

我想好了。无论如何,谢谢你的帮助:

{
  "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"
  ]
}

你看了吗?顺便问一下,你在哪里看到
web\u url
不能与清单版本2一起使用?确切的问题是什么?你是如何解决的?请通过添加详细信息来扩展您的解决方案。这可能会在将来帮助其他人。此外,考虑将其中一个答案标记为“接受”。谢谢你提醒我记下答案。我不明白是什么错了…这和我以前的唯一区别是格式。无论如何,我在网上的任何地方都找不到答案,所以决定与大家分享。我查看了清单页面,结果什么都没用。最后,我发现了一个谷歌问题,它说,对于chromebooks,如何添加一个快速链接。不管怎样,问题解决了,被发现了!在错误的清单中,
权限
app
属性下,而在工作版本中,它们在
app
属性旁边声明。另外,非工作版本有
default\u locale
属性,但我怀疑这是问题所在。