* Fix #3063 - Add dynamic app manifest * Added short_name * Add background_colormain
parent
7623766241
commit
722d152082
@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ManifestsController < ApplicationController
|
||||
before_action :set_instance_presenter
|
||||
|
||||
def show; end
|
||||
|
||||
def set_instance_presenter
|
||||
@instance_presenter = InstancePresenter.new
|
||||
end
|
||||
end
|
@ -0,0 +1,11 @@
|
||||
object false
|
||||
|
||||
node(:name) { Setting.site_title }
|
||||
node(:short_name) { Setting.site_title }
|
||||
node(:description) { strip_tags(Setting.site_description.presence || I18n.t('about.about_mastodon')) }
|
||||
node(:icons) { [{ src: '/android-chrome-192x192.png', sizes: '192x192', type: 'image/png' }] }
|
||||
node(:theme_color) { '#282c37' }
|
||||
node(:background_color) { '#d9e1e8' }
|
||||
node(:display) { 'standalone' }
|
||||
node(:start_url) { '/web/timelines/home' }
|
||||
node(:scope) { root_url }
|
@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "Mastodon",
|
||||
"description": "Mastodon is a free, open-source social network server.",
|
||||
"icons": [
|
||||
{
|
||||
"src": "\/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image\/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#282c37",
|
||||
"display": "standalone",
|
||||
"start_url": "/web/timelines/home"
|
||||
}
|
Loading…
Reference in new issue