Use `natural` orientation for web app manifest.

The `any` orientation forces the rotation even when the device's screen
 rotation is disabled. Using `natural` respects that and restores the
 expected behaviour.
This commit is contained in:
Nicolas 2017-02-12 18:04:06 +00:00 committed by GitHub
parent 22c83b0a20
commit 1deec95ccb
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class MetadataController < ApplicationController
name: SiteSetting.title,
short_name: SiteSetting.title,
display: 'standalone',
orientation: 'any',
orientation: 'natural',
start_url: "#{Discourse.base_uri}/",
background_color: "##{ColorScheme.hex_for_name('secondary')}",
theme_color: "##{ColorScheme.hex_for_name('header_background')}",