瀏覽代碼

Make PWA icon maskable

Sebastian 9 月之前
父節點
當前提交
afe1f13c5b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/main.py

+ 1 - 1
backend/main.py

@@ -2264,7 +2264,7 @@ 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 maskable"}],
     }