Update ServiceWorker.ss

This commit is contained in:
Michel vd Steege 2018-08-02 15:26:32 +02:00 committed by GitHub
parent 889e5def38
commit 8ace11ef79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@
var requestURL = new URL(event.request.url);
//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);
return;
}