enable service worker
This commit is contained in:
parent
e3d62e27d3
commit
a5064ee109
1 changed files with 1 additions and 2 deletions
|
@ -14,14 +14,13 @@
|
|||
<!-- cordova.js required for cordova apps -->
|
||||
<script src="cordova.js"></script>
|
||||
|
||||
<!-- un-comment this code to enable service worker
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js')
|
||||
.then(() => console.log('service worker installed'))
|
||||
.catch(err => console.error('Error', err));
|
||||
}
|
||||
</script>-->
|
||||
</script>
|
||||
|
||||
<link href="build/main.css" rel="stylesheet">
|
||||
|
||||
|
|
Reference in a new issue