mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FEATURE: Allow users to fetch a customized manifest on PWA install
This will allow users installing a Discourse PWA to use their active theme colors on the generated app. Thanks for @mgiuca for the tip. Also makes the share_target config explicit to silence Chrome warnings
This commit is contained in:
parent
0afa2f4c4c
commit
8ce20090f7
@ -40,6 +40,8 @@ class MetadataController < ApplicationController
|
||||
],
|
||||
share_target: {
|
||||
action: "/new-topic",
|
||||
method: "GET",
|
||||
enctype: "application/x-www-form-urlencoded",
|
||||
params: {
|
||||
title: "title",
|
||||
text: "body"
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
<%= render_google_tag_manager_head_code %>
|
||||
<%= render_google_universal_analytics_code %>
|
||||
<link rel="manifest" href="<%= Discourse.base_uri %>/manifest.webmanifest">
|
||||
<link rel="manifest" href="<%= Discourse.base_uri %>/manifest.webmanifest" crossorigin="use-credentials">
|
||||
|
||||
<%- if SiteSetting.native_app_install_banner? %>
|
||||
<meta name="apple-itunes-app" content="app-id=1173672076">
|
||||
|
Loading…
Reference in New Issue
Block a user