introduce PWA

This commit is contained in:
Cutls 2019-07-20 21:08:14 +09:00
parent 4a6b87ac1c
commit c2dcd52da1
4 changed files with 21 additions and 1 deletions

View File

@ -497,7 +497,6 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
console.log(eUrl, regExp)
content = content.replace(regExp, 'href="' + eUrl + '"')
}
}
}

View File

@ -22,6 +22,7 @@
</script>
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
@@comment-end@@
<link href="../../../manifest.json" rel="manifest">
</head>
<body>

3
index.html Normal file
View File

@ -0,0 +1,3 @@
<script>
location.href="./view/ja"
</script>

17
manifest.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "TheDesk",
"short_name": "TheDesk",
"description": "Mastodonクライアント",
"icons": [
{
"src": "./app/img/desk.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#212121",
"background_color": "#212121",
"display": "standalone",
"start_url": "./view/ja",
"scope": "https://thedesk.github.io"
}