Service worker

This commit is contained in:
Michel 2018-06-24 18:14:41 +02:00
parent 67eb7144c8
commit c54dc51fc3
3 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,10 @@
"installer-name": "silverstripe-progressivewebapp",
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"expose": [
"resources"
]
},
"autoload": {
"psr-4": {

View File

@ -0,0 +1,3 @@
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('resources/pixelspin/silverstripe-progressivewebapp/resources/js/service-worker.js');
}

View File