google-chrome - 站点无法安装: Page has no manifest <link> URL

标签 google-chrome console.log

enter image description here

Chrome 控制台上显示此错误消息

我可以通过添加 list 链接来避免这种情况 但我不想在每个页面/布局上添加

有没有其他方法可以避免这个错误?

最佳答案

将 list 添加到您的页面最后,我们需要在页面中添加指向 list 的链接。打开work/index.html。在结束之前添加以下内容 </head>标签:

<link rel="manifest" href="~/manifest.json">

创建作品名称 mainfest,如下所示。

{
  "short_name": "",
  "name": "",
  "icons": [
  {
    "src":"",
    "sizes": "",
    "type": ""
  }
 ],
 "start_url": "",
 "background_color": "",
 "Theme_color": "",
 "display": ""
}

更多详细信息请引用以下链接: Manifest

关于google-chrome - 站点无法安装: Page has no manifest <link> URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58263601/

相关文章:

javascript - 如何使用chrome浏览数据javascript api?

Angular 控制台日志仅来自 main.js :1 and polyfills. js:1

javascript - 基于另一个值打印一个值的对象

syntax - 为什么以 "-->"开头的行不会在 Javascript 中引发错误?

javascript - Chrome 开发工具中的 console.log 对象/函数属性

html - 多个选项卡上的 Webkit 通知

css - 如何将 div 和后代的所有样式重置为 Chrome 默认值

css - 从 Chrome 中的 css 自定义样式按钮中删除蓝色边框

javascript - 如何 return 或 console.log 我的函数以返回我选择的数组?

css - 如何在不同浏览器中对一个类应用不同的css样式