fix(web): манифест PWA отдаётся с правильным типом
Go определяет .webmanifest как text/plain, из-за чего браузер мог отказаться ставить приложение: тип задаём явно вместе с js/css/svg.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "glchat",
|
||||
"short_name": "glchat",
|
||||
"description": "glchat — self-hosted платформа общения: серверы, комнаты, голос и файлы",
|
||||
"lang": "ru",
|
||||
"dir": "ltr",
|
||||
"start_url": "/app",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"display_override": ["window-controls-overlay", "standalone"],
|
||||
"orientation": "any",
|
||||
"background_color": "#1a1b1e",
|
||||
"theme_color": "#1a1b1e",
|
||||
"categories": ["social", "communication"],
|
||||
"icons": [
|
||||
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
|
||||
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" },
|
||||
{
|
||||
"src": "/icons/maskable-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{ "name": "Друзья", "url": "/app/friends" },
|
||||
{ "name": "Настройки", "url": "/settings/account/profile" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user