Przeglądaj źródła

fix(pwa) improve upon pwa specs

j8
Tudor-Ovidiu Avram 4 lat temu
rodzic
commit
3125345793
3 zmienionych plików z 10 dodań i 0 usunięć
  1. 4
    0
      index.html
  2. BIN
      static/pwa/icons/iconMask.png
  3. 6
    0
      static/pwa/manifest.json

+ 4
- 0
index.html Wyświetl plik

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

BIN
static/pwa/icons/iconMask.png Wyświetl plik


+ 6
- 0
static/pwa/manifest.json Wyświetl plik

@@ -19,6 +19,12 @@
19 19
       "src": "icons/icon512.png",
20 20
       "type": "image/png",
21 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 30
   "start_url": "/",

Ładowanie…
Anuluj
Zapisz