mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-20 15:06:23 -05:00
add service worker and webmanifest to allow pwa install for android when using termux
This commit is contained in:
parent
a46a94e125
commit
a94ce1ad50
4 changed files with 28 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<title>Reticulum MeshChat</title>
|
||||
|
||||
<!-- scripts -->
|
||||
|
|
@ -24,5 +25,11 @@
|
|||
<body class="bg-gray-100">
|
||||
<div id="app"></div>
|
||||
<script type="module" src="main.js"></script>
|
||||
<script>
|
||||
// install service worker
|
||||
if('serviceWorker' in navigator){
|
||||
navigator.serviceWorker.register('/service-worker.js');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue