mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-07-21 19:47:32 +08:00
feat(pwa): 补齐 web 端 PWA 可安装条件
- 新增 192/512 图标与 maskable 变体(源自 icon.png,安全区 80%) - manifest.json 图标声明修正(原先仅声明一个实际不存在的 256 尺寸) - 注册最小 Service Worker(空 fetch 处理器,不做缓存拦截),仅 Web 生产环境生效 Closes #640 Ref #382
This commit is contained in:
+13
-2
@@ -8,9 +8,20 @@
|
||||
"theme_color": "#000000",
|
||||
"icons": [
|
||||
{
|
||||
"src": "./icon.png",
|
||||
"src": "/icon-192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "256x256"
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "/icon-512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
},
|
||||
{
|
||||
"src": "/icon-512-maskable.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user