mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-18 00:24:21 +01:00
init service worker
This commit is contained in:
@@ -20,5 +20,11 @@
|
||||
<body>
|
||||
<div id="app" class="bg-gray-100"></div>
|
||||
<script type="module" src="main.js"></script>
|
||||
<script>
|
||||
// install service worker to allow for pwa install
|
||||
if('serviceWorker' in navigator){
|
||||
navigator.serviceWorker.register('/service-worker.js');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user