push
This commit is contained in:
parent
f250d69af8
commit
74fe12c896
|
@ -173,4 +173,14 @@ onmessage = function (e) {
|
|||
title: e.data[1]
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
window.addEventListener('load', function() {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register("/sw.js")
|
||||
.then(function(registration) {
|
||||
console.log("serviceWorker registed.");
|
||||
}).catch(function(error) {
|
||||
console.warn("serviceWorker error.", error);
|
||||
});
|
||||
}
|
||||
});
|
|
@ -1,5 +1,7 @@
|
|||
function postMessage(e){
|
||||
console.log(e)
|
||||
if(e[0]=="openUrl"){
|
||||
window.open(e[1])
|
||||
}
|
||||
return false;
|
||||
}
|
||||
document.title="TheDesk"
|
||||
|
|
|
@ -1,17 +1,21 @@
|
|||
{
|
||||
"name": "TheDesk",
|
||||
"short_name": "TheDesk",
|
||||
"description": "Mastodonクライアント",
|
||||
"icons": [
|
||||
{
|
||||
"src": "./img/desk.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"theme_color": "#212121",
|
||||
"background_color": "#212121",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"start_url": "./view/ja",
|
||||
"scope": "https://thedesk.github.io"
|
||||
"orientation": "portrait-primary",
|
||||
"background_color": "#212121",
|
||||
"theme_color": "#212121",
|
||||
"description": "TheDesk",
|
||||
"dir": "ltr",
|
||||
"lang": "ja-jp",
|
||||
"related_applications": [],
|
||||
"prefer_related_applications": false
|
||||
}
|
||||
|
|
|
@ -70,6 +70,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 id="mainView">
|
||||
|
|
Loading…
Reference in New Issue
Block a user