Jelajahi Sumber

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

fix: Make PWA icon maskable
Timothy Jaeryang Baek 8 bulan lalu
induk
melakukan
4dd404ac3b
1 mengubah file dengan 14 tambahan dan 1 penghapusan
  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",
+            },
+        ],
     }