mirror of
https://github.com/a2nt/silverstripe-progressivewebapp.git
synced 2024-10-22 11:05:45 +02:00
Update ServiceWorker.ss
This commit is contained in:
parent
b435128ac0
commit
5b93c34485
@ -59,6 +59,12 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Skip admin url's
|
||||||
|
if(requestURL.pathname.indexOf('admin') >= 0){
|
||||||
|
log('Service worker: skip admin ' + event.request.url);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Parse the url
|
//Parse the url
|
||||||
var requestURL = new URL(event.request.url);
|
var requestURL = new URL(event.request.url);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user