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 -->
|
<!-- cordova.js required for cordova apps -->
|
||||||
<script src="cordova.js"></script>
|
<script src="cordova.js"></script>
|
||||||
|
|
||||||
<!-- un-comment this code to enable service worker
|
|
||||||
<script>
|
<script>
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker.register('service-worker.js')
|
navigator.serviceWorker.register('service-worker.js')
|
||||||
.then(() => console.log('service worker installed'))
|
.then(() => console.log('service worker installed'))
|
||||||
.catch(err => console.error('Error', err));
|
.catch(err => console.error('Error', err));
|
||||||
}
|
}
|
||||||
</script>-->
|
</script>
|
||||||
|
|
||||||
<link href="build/main.css" rel="stylesheet">
|
<link href="build/main.css" rel="stylesheet">
|
||||||
|
|
||||||
|
|
Reference in a new issue