Skip to content

Commit dedeb07

Browse files
Merge pull request GDGVIT#25 from upayanmazumder-DevLabs/dev
Fix maskable icon
2 parents 077a978 + 88a31ee commit dedeb07

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

app/public/maskable-icon.png

186 KB
Loading

app/public/maskable-icon.webp

14 KB
Loading

app/public/service-worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const CORE_ASSETS = [
3131
'/icons/icon-384x384.webp',
3232
'/icons/icon-512x512.webp',
3333
'/apple-touch-icon.webp',
34+
'/maskable-icon.png',
35+
'/maskable-icon.webp',
3436
'/icon.avif',
3537
'/icon.png',
3638
'/icon.svg',

app/src/app/manifest.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default function manifest(): MetadataRoute.Manifest {
9696
src: '/icons/icon-192x192.webp',
9797
sizes: '192x192',
9898
type: 'image/webp',
99-
purpose: 'maskable',
99+
purpose: 'any',
100100
},
101101
{
102102
src: '/icons/icon-196x196.webp',
@@ -126,13 +126,31 @@ export default function manifest(): MetadataRoute.Manifest {
126126
src: '/icons/icon-512x512.webp',
127127
sizes: '512x512',
128128
type: 'image/webp',
129-
purpose: 'maskable',
129+
purpose: 'any',
130130
},
131131
{
132132
src: '/icon.svg',
133133
sizes: 'any',
134134
type: 'image/svg+xml',
135135
},
136+
{
137+
src: '/apple-touch-icon.webp',
138+
sizes: '180x180',
139+
type: 'image/webp',
140+
purpose: 'any',
141+
},
142+
{
143+
src: '/maskable-icon.webp',
144+
sizes: '512x512',
145+
type: 'image/webp',
146+
purpose: 'maskable',
147+
},
148+
{
149+
src: '/maskable-icon.png',
150+
sizes: '512x512',
151+
type: 'image/png',
152+
purpose: 'maskable',
153+
},
136154
],
137155
lang: 'en-US',
138156
dir: 'ltr',

0 commit comments

Comments
 (0)