mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
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:
parent
5ff2a235f6
commit
bb7fca832f
@ -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"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user