mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 03:41:50 +08:00
FEATURE: Update the webmanifest
- Remove share target because the spec is changing - Allow any orientation again because natural is too restrictive - Use correct file and mime types for the manifest
This commit is contained in:
@ -3,7 +3,7 @@ class MetadataController < ApplicationController
|
||||
skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required
|
||||
|
||||
def manifest
|
||||
render json: default_manifest.to_json
|
||||
render json: default_manifest.to_json, content_type: 'application/manifest+json'
|
||||
end
|
||||
|
||||
def opensearch
|
||||
@ -23,11 +23,8 @@ class MetadataController < ApplicationController
|
||||
name: SiteSetting.title,
|
||||
short_name: SiteSetting.title,
|
||||
display: 'standalone',
|
||||
orientation: 'natural',
|
||||
orientation: 'any',
|
||||
start_url: "#{Discourse.base_uri}/",
|
||||
share_target: {
|
||||
url_template: 'new-topic?title={title}&body={text}%0A%0A{url}'
|
||||
},
|
||||
background_color: "##{ColorScheme.hex_for_name('secondary')}",
|
||||
theme_color: "##{ColorScheme.hex_for_name('header_background')}",
|
||||
icons: [
|
||||
|
Reference in New Issue
Block a user