Skip to content

Commit c59c9d4

Browse files
authored
feat: add Shortcuts to Manifest (#44)
1 parent 645aff9 commit c59c9d4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ plugins:[
5656
type: 'image/png',
5757
},
5858
],
59+
shortcuts: [ // Optional
60+
{
61+
name: "View Subscriptions",
62+
short_name: "Subscriptions",
63+
description: "View the list of podcasts you listen to",
64+
url: "/subscriptions?utm_source=homescreen",
65+
icons: [{ src: "/icons/subscriptions.png", sizes: "192x192" }]
66+
}
67+
],
5968
gcmSenderId: undefined, // Optional
6069

6170
// Standard Meta Tags

src/files/manifest.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const createManifest = async (context, config, queue, options) => {
3939
theme_color: options.themeColor,
4040
background_color: options.backgroundColor,
4141
screenshots: options.screenshots,
42+
shortcuts: options.shortcuts,
4243
scope: options.scope,
4344
gcm_sender_id: options.gcmSenderId,
4445
icons

0 commit comments

Comments
 (0)