mirror of
https://github.com/a2nt/silverstripe-progressivewebapp.git
synced 2024-10-22 11:05:45 +02:00
Service worker
This commit is contained in:
parent
67eb7144c8
commit
c54dc51fc3
@ -27,7 +27,10 @@
|
|||||||
"installer-name": "silverstripe-progressivewebapp",
|
"installer-name": "silverstripe-progressivewebapp",
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.x-dev"
|
"dev-master": "2.x-dev"
|
||||||
}
|
},
|
||||||
|
"expose": [
|
||||||
|
"resources"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
3
resources/js/progressivewebapp.js
Normal file
3
resources/js/progressivewebapp.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
navigator.serviceWorker.register('resources/pixelspin/silverstripe-progressivewebapp/resources/js/service-worker.js');
|
||||||
|
}
|
0
resources/js/service-worker.js
Normal file
0
resources/js/service-worker.js
Normal file
Loading…
Reference in New Issue
Block a user