Update ServiceWorker.ss

This commit is contained in:
Michel vd Steege 2018-07-11 15:41:38 +02:00 committed by GitHub
parent b435128ac0
commit 5b93c34485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);