Skip to content

Commit

Permalink
feat(indiekit): add share_target to web app manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Nov 3, 2023
1 parent caaa34f commit 6fa88d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/indiekit/lib/controllers/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
}),
});
};

0 comments on commit 6fa88d1

Please sign in to comment.