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
889e5def38
commit
8ace11ef79
@ -63,7 +63,7 @@
|
|||||||
var requestURL = new URL(event.request.url);
|
var requestURL = new URL(event.request.url);
|
||||||
|
|
||||||
//Skip admin url's
|
//Skip admin url's
|
||||||
if(requestURL.pathname.indexOf('admin') >= 0){
|
if(requestURL.pathname.indexOf('admin') >= 0 || requestURL.pathname.indexOf('Security') >= 0 || requestURL.pathname.indexOf('dev') >= 0){
|
||||||
log('Service worker: skip admin ' + event.request.url);
|
log('Service worker: skip admin ' + event.request.url);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user