Bypass service worker for pu-saves requests
This commit is contained in:
1
sw.js
1
sw.js
@@ -82,6 +82,7 @@ self.addEventListener('install', function (event) {
|
||||
self.addEventListener('fetch', function (event) {
|
||||
if (event.request.method === 'POST') { return; }
|
||||
if (event.request.url.startsWith("https://save.projectuniversity.net")) { return; }
|
||||
if (event.request.url.startsWith("https://pu-saves.burrson.de")) { return; }
|
||||
const url = new URL(event.request.url);
|
||||
|
||||
if (url.pathname.startsWith('/dynamic/')) {
|
||||
|
||||
Reference in New Issue
Block a user