diff --git a/src/service-worker.js b/src/service-worker.js index 1fc03c39..a98e189c 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -33,6 +33,7 @@ const assets = __assets__ .filter(filename => !filename.includes('traineddata.gz')) // cache on-demand .filter(filename => !filename.endsWith('.webapp')) // KaiOS manifest .filter(filename => !/emoji-.*?\.json$/.test(filename)) // useless to cache; it already goes in IndexedDB + .filter(filename => !/screenshot-.*?\.png/.test(filename)) // only used during PWA installation, don't bother caching // `shell` is an array of all the files generated by webpack // also contains '/index.html' for some reason diff --git a/static/manifest.json b/static/manifest.json index b9310ea8..eda10151 100644 --- a/static/manifest.json +++ b/static/manifest.json @@ -4,6 +4,9 @@ "name": "Pinafore for Mastodon", "short_name": "Pinafore", "description": "Alternative web client for Mastodon, focused on speed and simplicity.", + "categories": [ + "social" + ], "display": "standalone", "start_url": "/?pwa=true", "share_target": { @@ -108,5 +111,22 @@ "type": "image/png", "purpose": "maskable" } + ], + "screenshots": [ + { + "src": "screenshot-540-720-1.png", + "type": "image/png", + "sizes": "540x720" + }, + { + "src": "screenshot-540-720-2.png", + "type": "image/jpeg", + "sizes": "540x720" + }, + { + "src": "screenshot-540-720-3.png", + "type": "image/jpeg", + "sizes": "540x720" + } ] } diff --git a/static/screenshot-540-720-1.png b/static/screenshot-540-720-1.png new file mode 100644 index 00000000..cd7e67f4 Binary files /dev/null and b/static/screenshot-540-720-1.png differ diff --git a/static/screenshot-540-720-2.png b/static/screenshot-540-720-2.png new file mode 100644 index 00000000..fecba932 Binary files /dev/null and b/static/screenshot-540-720-2.png differ diff --git a/static/screenshot-540-720-3.png b/static/screenshot-540-720-3.png new file mode 100644 index 00000000..b15f8c43 Binary files /dev/null and b/static/screenshot-540-720-3.png differ