A platform for community discussion. Free, open, simple.
FEATURE: Use `display: browser` in webmanifest for iOS devices
Rafael dos Santos Silvac8b5e6baae17
diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rbindex bd77bd191d2..2305936dc68 100644--- a/app/controllers/metadata_controller.rb+++ b/app/controllers/metadata_controller.rb@@ -19,10 +19,12 @@ class MetadataController < ApplicationControllerendfile_info = get_file_info(logo)+ display = request.user_agent =~ /iPad|iPhone/ ? 'browser' : 'standalone'+manifest = {name: SiteSetting.title,short_name: SiteSetting.title,- display: 'standalone',+ display: display,orientation: 'any',start_url: Discourse.base_uri.present? ? "#{Discourse.base_uri}/" : '.',background_color: "##{ColorScheme.hex_for_name('secondary')}",