5

更多信息/更新

我打包并安装了谷歌自己的显示文件系统访问的示例应用程序,它也没有显示复选框!

你可以在这里找到它:https ://github.com/GoogleChrome/chrome-app-samples/tree/master/filesystem-access

原帖

我有权在我的清单中请求 filesystem.write 能力,但在chrome://extensions页面上,复选框没有显示。当我点击我的应用程序图标旁边的“权限”时,它只显示:

“写入您在应用程序中打开的文件”

我究竟做错了什么?(这是一个托管应用程序)

清单.json

{
    "manifest_version": 2,
    "name": "Hello World",
    "description": "A test application",
    "version": "2.0.3.92",
    "minimum_chrome_version": "23",
    "offline_enabled": true,
    "update_url": "http://mywebsite.com/updates/helloworld.xml",
    "icons": 
    {
        "16": "icon_16.png",
        "128": "icon_128.png"
    },
    "app": 
    {
        "background": 
        {
            "scripts": 
            [
                "utils.js",
                "fs.js",
                "main.js"
            ]
        }
    },
    "permissions": 
    [
        "unlimitedStorage",
        "fullscreen",
        {
            "fileSystem": 
            [
                "write"
            ]
        },
        "background",
        "http://*/",
        "tabs"
    ]
}
4

1 回答 1

6

要使其正常工作,您需要:

permissions: [ "<all_urls>" ]

或以 . 开头的方案file:///

如果您尝试*://*/*这将不起作用,因为它仅代表 http 或 https

于 2013-06-19T05:53:03.663 回答