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

fix: Make PWA icon maskable
This commit is contained in:
Timothy Jaeryang Baek 2024-08-15 13:25:00 +02:00 committed by GitHub
commit 4dd404ac3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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