Browse Source

Perfect pwa support

陈帅 7 years ago
parent
commit
c844561733
3 changed files with 7 additions and 2 deletions
  1. BIN
      public/icons/icon-512x512.png
  2. 6 2
      src/manifest.json
  3. 1 0
      src/pages/document.ejs

BIN
public/icons/icon-512x512.png


+ 6 - 2
src/manifest.json

@@ -1,6 +1,6 @@
 {
-  "name": "ant-design-pro",
-  "short_name": "antd-pro",
+  "name": "Ant Design Pro",
+  "short_name": "Ant Design Pro",
   "display": "standalone",
   "start_url": "./?utm_source=homescreen",
   "theme_color": "#002140",
@@ -13,6 +13,10 @@
     {
       "src": "icons/icon-128x128.png",
       "sizes": "128x128"
+    },
+    {
+      "src": "icons/icon-512x512.png",
+      "sizes": "512x512"
     }
   ]
 }

+ 1 - 0
src/pages/document.ejs

@@ -9,6 +9,7 @@
   <script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.9.6/dist/data-set.min.js"></script>
 </head>
 <body>
+  <noscript>Sorry, we need js to run correctly!</noscript>
   <div id="root"></div>
 </body>
 </html>