Skip to content

Commit 866eab7

Browse files
authoredDec 3, 2024··
Fix safari maskable (#1004)
* fix maskable * update manifest
1 parent 6a5397b commit 866eab7

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed
 

‎pkg/app/gen/manifest.webmanifest

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33
"name": "{{.Name}}",
44
"description": "{{.Description}}",
55
"icons": [
6-
{
6+
{{if .MaskableIcon}}{
7+
"src": "{{.MaskableIcon}}",
8+
"type": "image/png",
9+
"purpose": "maskable",
10+
"sizes": "512x512"
11+
},{{end}}
12+
{{if .SVGIcon}}{
713
"src": "{{.SVGIcon}}",
814
"type": "image/svg+xml",
915
"sizes": "any"
10-
},
11-
{
16+
},{{end}}
17+
{{if .LargeIcon}}{
1218
"src": "{{.LargeIcon}}",
1319
"type": "image/png",
1420
"sizes": "512x512"
15-
},
21+
},{{end}}
1622
{
1723
"src": "{{.DefaultIcon}}",
1824
"type": "image/png",
1925
"sizes": "192x192"
20-
},
21-
{
22-
"src": "{{.MaskableIcon}}",
23-
"type": "image/png",
24-
"purpose": "maskable",
25-
"sizes": "192x192"
2626
}
2727
],
2828
"scope": "{{.Scope}}",

‎pkg/app/http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ type Icon struct {
794794
SVG string
795795

796796
// Maskable specifies the path or URL to an adaptive icon designed for various
797-
// operating system shapes. This icon must be a PNG image with 192x192 pixels.
797+
// operating system shapes. This icon must be a PNG image with 512x512 pixels.
798798
//
799799
// Used in PWA manifests and as meta tags for Apple browsers, these icons adapt
800800
// to device or browser shape requirements, avoiding unsightly cropping.

‎pkg/app/scripts.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.