add service worker and webmanifest to allow pwa install for android when using termux

This commit is contained in:
liamcottle 2024-09-22 19:39:01 +12:00
parent a46a94e125
commit a94ce1ad50
4 changed files with 28 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,17 @@
{
"name": "MeshChat",
"short_name": "MeshChat",
"description": "A simple mesh network communications app powered by the Reticulum Network Stack.",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "/favicons/favicon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"display": "standalone",
"theme_color": "#FFFFFF",
"background_color": "#FFFFFF"
}

View file

@ -0,0 +1,4 @@
self.addEventListener('fetch',function() {
// this is required to meet the requirements for an installable pwa
// it allows the browser to ask the user if they want to install to their homescreen
});