From 1deec95ccba406d5824d4b6e57fc01f0c5112c58 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 12 Feb 2017 18:04:06 +0000 Subject: [PATCH] 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. --- app/controllers/metadata_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rb index 9a8fc915ce3..04a5eaafd49 100644 --- a/app/controllers/metadata_controller.rb +++ b/app/controllers/metadata_controller.rb @@ -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')}",