push
This commit is contained in:
parent
f250d69af8
commit
74fe12c896
|
@ -173,4 +173,14 @@ onmessage = function (e) {
|
||||||
title: e.data[1]
|
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){
|
function postMessage(e){
|
||||||
console.log(e)
|
if(e[0]=="openUrl"){
|
||||||
|
window.open(e[1])
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
document.title="TheDesk"
|
document.title="TheDesk"
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
{
|
{
|
||||||
"name": "TheDesk",
|
"name": "TheDesk",
|
||||||
"short_name": "TheDesk",
|
"short_name": "TheDesk",
|
||||||
"description": "Mastodonクライアント",
|
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "./img/desk.png",
|
"src": "./img/desk.png",
|
||||||
"sizes": "512x512",
|
"type": "image/png",
|
||||||
"type": "image/png"
|
"sizes": "512x512"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"theme_color": "#212121",
|
"start_url": "/",
|
||||||
"background_color": "#212121",
|
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"start_url": "./view/ja",
|
"orientation": "portrait-primary",
|
||||||
"scope": "https://thedesk.github.io"
|
"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>
|
||||||
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
||||||
@@comment-end@@
|
@@comment-end@@
|
||||||
|
<link href="../../../manifest.json" rel="manifest">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="mainView">
|
<body id="mainView">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user