浏览代码

better manifest json

Heydon Pickering 8 年之前
父节点
当前提交
6c1149352d
共有 3 个文件被更改,包括 14 次插入4 次删除
  1. 7 2
      docs/manifest.json
  2. 0 0
      docs/service-worker.js
  3. 7 2
      themes/infusion/static/manifest.json

+ 7 - 2
docs/manifest.json

@@ -1,5 +1,6 @@
 {
- "name": "App",
+ "name": "Infusion Pattern Library",
+ "short_name": "Infusion",
  "icons": [
   {
    "src": "\/images/android-icon-36x36.png",
@@ -37,5 +38,9 @@
    "type": "image\/png",
    "density": "4.0"
   }
- ]
+],
+  "start_url": "index.html",
+  "display": "standalone",
+  "background_color": "#111",
+  "theme_color": "#fff"
 }

文件差异内容过多而无法显示
+ 0 - 0
docs/service-worker.js


+ 7 - 2
themes/infusion/static/manifest.json

@@ -1,5 +1,6 @@
 {
- "name": "App",
+ "name": "Infusion Pattern Library",
+ "short_name": "Infusion",
  "icons": [
   {
    "src": "\/images/android-icon-36x36.png",
@@ -37,5 +38,9 @@
    "type": "image\/png",
    "density": "4.0"
   }
- ]
+],
+  "start_url": "index.html",
+  "display": "standalone",
+  "background_color": "#111",
+  "theme_color": "#fff"
 }

部分文件因为文件数量过多而无法显示