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:
Rafael dos Santos Silva
2019-03-15 17:10:05 -03:00
parent 0afa2f4c4c
commit 8ce20090f7
2 changed files with 3 additions and 1 deletions

View File

@@ -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"