From afe1f13c5b45219582f695513d344b1c10204432 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 15 Aug 2024 00:42:36 +0200 Subject: [PATCH 1/2] Make PWA icon maskable --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index d8ce5f5d7..0201b4332 100644 --- a/backend/main.py +++ b/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"}], } From ba370438b2b3743be9240958fb400b2244651dfd Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 15 Aug 2024 13:24:47 +0200 Subject: [PATCH 2/2] refac: "any maskable" is discouraged --- backend/main.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 0201b4332..c7bdb6284 100644 --- a/backend/main.py +++ b/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", "purpose": "any maskable"}], + "icons": [ + { + "src": "/static/logo.png", + "type": "image/png", + "sizes": "500x500", + "purpose": "any", + }, + { + "src": "/static/logo.png", + "type": "image/png", + "sizes": "500x500", + "purpose": "maskable", + }, + ], }