Discover Web App Manifest in HTML

... and return a hash of the JSON data.
This commit is contained in:
2018-06-28 21:11:52 -07:00
parent ee49c0bfaf
commit 193319945a
6 changed files with 132 additions and 15 deletions

View File

@@ -0,0 +1,20 @@
{
"name": "kosmos.social",
"short_name": "kosmos.social",
"description": "A friendly place for tooting. Run by the Kosmos peeps.",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"theme_color": "#282c37",
"background_color": "#191b22",
"display": "standalone",
"start_url": "/web/timelines/home",
"scope": "https://kosmos.social/",
"share_target": {
"url_template": "share?title={title}&text={text}&url={url}"
}
}

38
spec/fixtures/mastodon.html vendored Normal file

File diff suppressed because one or more lines are too long