Explorar o código

Add Web App Manifest (#408)

rugk %!s(int64=7) %!d(string=hai) anos
pai
achega
a9d93b09c4
Modificáronse 3 ficheiros con 23 adicións e 0 borrados
  1. 3 0
      index.html
  2. 20 0
      manifest.webmanifest
  3. BIN=BIN
      public/img/threema-576x576.png

+ 3 - 0
index.html

@@ -29,6 +29,9 @@
     <meta name="description" translate translate-attr-content="meta.DESCRIPTION"
           content="Chat from your desktop with Threema Web and have full access to all chats, contacts and media files."/>
 
+    <!-- Webmanifest -->
+    <link rel="manifest" href="manifest.webmanifest">
+
     <!-- Favicon -->
     <link rel="icon" href="img/favicon.ico?v=[[VERSION]]" type="image/x-icon"/>
     <link rel="shortcut icon" href="img/favicon.ico?v=[[VERSION]]" type="image/x-icon"/>

+ 20 - 0
manifest.webmanifest

@@ -0,0 +1,20 @@
+{
+  "background_color": "rgb(117,117,117)",
+  "description": "Chat from your desktop with Threema Web and have full access to all chats, contacts and media files.",
+  "display": "standalone",
+  "icons": [
+    {
+      "src": "img/favicon.ico",
+      "sizes": "64x64",
+      "type": "image/x-icon"
+    },
+    {
+      "src": "img/threema-576x576.png",
+      "sizes": "576x576",
+      "type": "image/png"
+    }
+  ],
+  "name": "Threema Web",
+  "short_name": "Threema Web",
+  "start_url": "."
+}

BIN=BIN
public/img/threema-576x576.png