Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 为什么谷歌chrome可以';t detect manifest.json_Javascript_Progressive Web Apps_Manifest - Fatal编程技术网

Javascript 为什么谷歌chrome可以';t detect manifest.json

Javascript 为什么谷歌chrome可以';t detect manifest.json,javascript,progressive-web-apps,manifest,Javascript,Progressive Web Apps,Manifest,您好,我想将我的网站命名为pwa。该网站位于django,我将manifest.webmanifest放在127.0.0.1:8000/images/manifest中。webmanifest(仅用于测试)现在只有firefox可以检测到它,google chrome无法检测到。 这是我的清单。webmanifest内容: { "name":"damirco", "short_name":"damirco&qu

您好,我想将我的网站命名为pwa。该网站位于django,我将manifest.webmanifest放在127.0.0.1:8000/images/manifest中。webmanifest(仅用于测试)现在只有firefox可以检测到它,google chrome无法检测到。 这是我的清单。webmanifest内容:

{
    "name":"damirco",
    "short_name":"damirco",
    "display":"standalone",
    "background_color":"rgb(11,11,211)",
    "description":"damirco",
    "dir":"rtl",
    "orientation":"portrait-primary",
    "icons":[
        {
            "src":"/images/pwa/512x512.png",
            "type":"image/png",
            "sizes":"512x512"
        },
        {
            "src":"/images/pwa/192x192.png",
            "type":"image/png",
            "sizes":"192x192"
        }
    ],
    "start_url":"/",
    "scope":"/",
    "theme_color":"#3f51b5",
    "prefer_related_applications": false
}
这是链接标签:

<link rel="manifest" type="application/manifest+json" href="/images/manifest.webmanifest">