瀏覽代碼

fix(pwa) improve upon pwa specs

j8
Tudor-Ovidiu Avram 5 年之前
父節點
當前提交
3125345793
共有 3 個檔案被更改,包括 10 行新增0 行删除
  1. 4
    0
      index.html
  2. 二進制
      static/pwa/icons/iconMask.png
  3. 6
    0
      static/pwa/manifest.json

+ 4
- 0
index.html 查看文件

4
     <meta charset="utf-8">
4
     <meta charset="utf-8">
5
     <meta http-equiv="content-type" content="text/html;charset=utf-8">
5
     <meta http-equiv="content-type" content="text/html;charset=utf-8">
6
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <meta name="theme-color" content="#2A3A4B">
7
     <!--#include virtual="base.html" -->
8
     <!--#include virtual="base.html" -->
8
 
9
 
9
     <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
10
     <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
167
     <!--#include virtual="static/settingsToolbarAdditionalContent.html" -->
168
     <!--#include virtual="static/settingsToolbarAdditionalContent.html" -->
168
   </head>
169
   </head>
169
   <body>
170
   <body>
171
+    <noscript>
172
+        <div>JavaScript is disabled. </br>For this site to work you have to enable JavaScript.</div>
173
+    </noscript>
170
     <!--#include virtual="body.html" -->
174
     <!--#include virtual="body.html" -->
171
     <div id="react"></div>
175
     <div id="react"></div>
172
   </body>
176
   </body>

二進制
static/pwa/icons/iconMask.png 查看文件


+ 6
- 0
static/pwa/manifest.json 查看文件

19
       "src": "icons/icon512.png",
19
       "src": "icons/icon512.png",
20
       "type": "image/png",
20
       "type": "image/png",
21
       "sizes": "512x512"
21
       "sizes": "512x512"
22
+    },
23
+    {
24
+      "src": "icons/iconMask.png",
25
+      "sizes": "196x196",
26
+      "type": "image/png",
27
+      "purpose": "any maskable"
22
     }
28
     }
23
   ],
29
   ],
24
   "start_url": "/",
30
   "start_url": "/",

Loading…
取消
儲存