FIX: Workaround WebAPK server bug with images without sizes

Google WebAPK server was returning 500 with `any` sized svgs,
which is a spec violation.

Workaround for now setting a static size.

See https://bugs.chromium.org/p/chromium/issues/detail?id=1061911
This commit is contained in:
Rafael dos Santos Silva 2020-05-14 18:08:51 -03:00
parent 5ff2a235f6
commit bb7fca832f
No known key found for this signature in database
GPG Key ID: 5E50360227B34938

View File

@ -62,7 +62,7 @@ class MetadataController < ApplicationController
icons: [
{
src: "#{icon_url_base}/plus.svg",
sizes: "any",
sizes: "128x128",
type: "image/svg+xml"
}
]
@ -74,7 +74,7 @@ class MetadataController < ApplicationController
icons: [
{
src: "#{icon_url_base}/envelope.svg",
sizes: "any",
sizes: "128x128",
type: "image/svg+xml"
}
]
@ -86,7 +86,7 @@ class MetadataController < ApplicationController
icons: [
{
src: "#{icon_url_base}/bookmark.svg",
sizes: "any",
sizes: "128x128",
type: "image/svg+xml"
}
]
@ -98,7 +98,7 @@ class MetadataController < ApplicationController
icons: [
{
src: "#{icon_url_base}/signal.svg",
sizes: "any",
sizes: "128x128",
type: "image/svg+xml"
}
]