once load splash

This commit is contained in:
hamid zarghami
2026-06-06 10:04:47 +03:30
parent e948b00f55
commit 2ae99faca9
12 changed files with 201 additions and 64 deletions
+34
View File
@@ -0,0 +1,34 @@
export const PWA_ICON_192 = '/api/pwa-icon/192';
export const PWA_ICON_512 = '/api/pwa-icon/512';
export function buildPwaManifestIcons(logo192?: string, logo512?: string) {
const icon192 = logo192 ?? PWA_ICON_192;
const icon512 = logo512 ?? PWA_ICON_512;
return [
{
src: icon192,
sizes: '192x192',
type: 'image/png',
purpose: 'any',
},
{
src: icon512,
sizes: '512x512',
type: 'image/png',
purpose: 'any',
},
{
src: icon192,
sizes: '192x192',
type: 'image/png',
purpose: 'maskable',
},
{
src: icon512,
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
];
}