From 6fa88d19a47e9f67e3626eef2b3a172b86e0d9a7 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Fri, 3 Nov 2023 17:03:37 +0000 Subject: [PATCH] feat(indiekit): add share_target to web app manifest --- packages/indiekit/lib/controllers/manifest.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/indiekit/lib/controllers/manifest.js b/packages/indiekit/lib/controllers/manifest.js index ea0b117ef..4b0ad3590 100644 --- a/packages/indiekit/lib/controllers/manifest.js +++ b/packages/indiekit/lib/controllers/manifest.js @@ -18,5 +18,16 @@ export const get = async (request, response) => { type: "image/png", }, ], + ...(application.shareEndpoint && { + share_target: { + action: application.shareEndpoint, + method: "GET", + params: { + title: "name", + text: "content", + url: "url", + }, + }, + }), }); };