mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FIX: Remove svg icons from webmanifest shortcuts (#15765)
* FIX: Remove svg icons from webmanifest shortcuts While SVGs are valid in the webmanifest, Chromium has not implemented support for it in this specific manifest member. Revert when https://bugs.chromium.org/p/chromium/issues/detail?id=1091612 lands. * fix test
This commit is contained in:

committed by
GitHub

parent
7ee708913a
commit
2e2fee9da3
@ -65,49 +65,21 @@ class MetadataController < ApplicationController
|
||||
name: I18n.t('js.topic.create_long'),
|
||||
short_name: I18n.t('js.topic.create'),
|
||||
url: "#{Discourse.base_path}/new-topic",
|
||||
icons: [
|
||||
{
|
||||
src: "#{icon_url_base}/plus.svg",
|
||||
sizes: "131x150",
|
||||
type: "image/svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: I18n.t('js.user.messages.inbox'),
|
||||
short_name: I18n.t('js.user.messages.inbox'),
|
||||
url: "#{Discourse.base_path}/my/messages",
|
||||
icons: [
|
||||
{
|
||||
src: "#{icon_url_base}/envelope.svg",
|
||||
sizes: "150x150",
|
||||
type: "image/svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: I18n.t('js.user.bookmarks'),
|
||||
short_name: I18n.t('js.user.bookmarks'),
|
||||
url: "#{Discourse.base_path}/my/activity/bookmarks",
|
||||
icons: [
|
||||
{
|
||||
src: "#{icon_url_base}/bookmark.svg",
|
||||
sizes: "113x150",
|
||||
type: "image/svg"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: I18n.t('js.filters.top.title'),
|
||||
short_name: I18n.t('js.filters.top.title'),
|
||||
url: "#{Discourse.base_path}/top",
|
||||
icons: [
|
||||
{
|
||||
src: "#{icon_url_base}/signal.svg",
|
||||
sizes: "188x150",
|
||||
type: "image/svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user