Procházet zdrojové kódy

Merge pull request #4614 from sebdanielsson/pwa-maskable-icon

fix: Make PWA icon maskable
Timothy Jaeryang Baek před 9 měsíci
rodič
revize
4dd404ac3b
1 změnil soubory, kde provedl 14 přidání a 1 odebrání
  1. 14 1
      backend/main.py

+ 14 - 1
backend/main.py

@@ -2264,7 +2264,20 @@ async def get_manifest_json():
         "display": "standalone",
         "background_color": "#343541",
         "orientation": "portrait-primary",
-        "icons": [{"src": "/static/logo.png", "type": "image/png", "sizes": "500x500"}],
+        "icons": [
+            {
+                "src": "/static/logo.png",
+                "type": "image/png",
+                "sizes": "500x500",
+                "purpose": "any",
+            },
+            {
+                "src": "/static/logo.png",
+                "type": "image/png",
+                "sizes": "500x500",
+                "purpose": "maskable",
+            },
+        ],
     }