once load splash
This commit is contained in:
@@ -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',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user