Skip to content

Commit

Permalink
manifest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cho45 committed Aug 27, 2019
1 parent a3ad694 commit 432c6a2
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
7 changes: 7 additions & 0 deletions index.html
Expand Up @@ -312,5 +312,12 @@ <h3 class="md-title" style="flex: 1">NanoVNA</h3>
</md-dialog-actions>
</md-dialog>
</div>
<script>
window.addEventListener('load', function() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./sw.js');
}
});
</script>
</body>
</html>
47 changes: 45 additions & 2 deletions manifest.json
Expand Up @@ -3,7 +3,50 @@
"short_name": "VNA",
"theme_color": "#2196f3",
"background_color": "#2196f3",
"display": "browser",
"display": "standalone",
"scope": ".",
"start_url": "."
"start_url": ".",
"icons": [
{
"src": "images/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "images/icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "images/icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "images/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "images/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "images/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "images/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "images/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"splash_pages": null
}
3 changes: 3 additions & 0 deletions sw.js
@@ -0,0 +1,3 @@



0 comments on commit 432c6a2

Please sign in to comment.