| ... |
... |
@@ -9,7 +9,7 @@ |
| 9 |
9 |
self.addEventListener("activate" , event => { |
| 10 |
10 |
event.waitUntil(self.clients.claim()); |
| 11 |
11 |
}); |
| 12 |
|
- |
|
12 |
+*/ |
| 13 |
13 |
self.addEventListener("fetch" , event => { |
| 14 |
14 |
const pathname = new URL(event.request.url).pathname; |
| 15 |
15 |
if(pathname === '/bin/get/XWiki/LiveTableResults') { |
| ... |
... |
@@ -20,12 +20,3 @@ |
| 20 |
20 |
})); |
| 21 |
21 |
} |
| 22 |
22 |
}); |
| 23 |
|
-*/ |
| 24 |
|
-self.addEventListener("fetch", (e) => { |
| 25 |
|
- const pathname = new URL(event.request.url).pathname; |
| 26 |
|
- console.log("sw", pathname); |
| 27 |
|
- if(pathname === "/getMembershipRequests") { |
| 28 |
|
- const res = new Response("custom response"); |
| 29 |
|
- e.respondWith(res); |
| 30 |
|
- } |
| 31 |
|
-}) |