Skip to content

Commit

Permalink
Fix safari maskable (#1004)
Browse files Browse the repository at this point in the history
* fix maskable

* update manifest
  • Loading branch information
maxence-charriere authored Dec 3, 2024
1 parent 6a5397b commit 866eab7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions pkg/app/gen/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
"name": "{{.Name}}",
"description": "{{.Description}}",
"icons": [
{
{{if .MaskableIcon}}{
"src": "{{.MaskableIcon}}",
"type": "image/png",
"purpose": "maskable",
"sizes": "512x512"
},{{end}}
{{if .SVGIcon}}{
"src": "{{.SVGIcon}}",
"type": "image/svg+xml",
"sizes": "any"
},
{
},{{end}}
{{if .LargeIcon}}{
"src": "{{.LargeIcon}}",
"type": "image/png",
"sizes": "512x512"
},
},{{end}}
{
"src": "{{.DefaultIcon}}",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "{{.MaskableIcon}}",
"type": "image/png",
"purpose": "maskable",
"sizes": "192x192"
}
],
"scope": "{{.Scope}}",
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ type Icon struct {
SVG string

// Maskable specifies the path or URL to an adaptive icon designed for various
// operating system shapes. This icon must be a PNG image with 192x192 pixels.
// operating system shapes. This icon must be a PNG image with 512x512 pixels.
//
// Used in PWA manifests and as meta tags for Apple browsers, these icons adapt
// to device or browser shape requirements, avoiding unsightly cropping.
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/scripts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 866eab7

Please sign in to comment.