mirror of
https://github.com/a2nt/silverstripe-progressivewebapp.git
synced 2024-10-22 11:05:45 +02:00
Update README.md
This commit is contained in:
parent
db8bb88bbc
commit
0ef7b8eb06
@ -15,7 +15,7 @@ composer require a2nt/silverstripe-progressivewebapp
|
||||
if ('serviceWorker' in navigator) {
|
||||
var baseHref = (document.getElementsByTagName('base')[0] || {}).href;
|
||||
if(baseHref){
|
||||
navigator.serviceWorker.register(baseHref + 'service-worker.js').then(function() {
|
||||
navigator.serviceWorker.register(baseHref + 'sw.js').then(function() {
|
||||
console.log('Service Worker Registered');
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user