6

I am trying to set up permission for Chrome so it can ask for webRequest.

However, if I add the permission like in the manual here http://developer.chrome.com/extensions/webRequest.html

{
  "name": "My extension",
  ...
  "permissions": [
    "webRequest",
    "*://*.google.com"
  ],
  ...
}

All I get from Chrome is

There were warnings when trying to install this extension: Permission '://.google.com' is unknown or URL pattern is malformed.

Where is the error in the manual, what should I do differently?

4

1 回答 1

17

谷歌地址后缺少斜杠。这行得通。

{
  "name": "My extension",
  ...
  "permissions": [
    "webRequest",
    "*://*.google.com/"
  ],
  ...
}

我......不确定在哪里向谷歌准确报告错误。

于 2013-07-01T14:34:12.113 回答