| ... |
... |
@@ -10,14 +10,13 @@ |
| 10 |
10 |
}); |
| 11 |
11 |
|
| 12 |
12 |
self.addEventListener("fetch" , (event) => { |
| 13 |
|
- const pathname = new URL(event.request.url).pathname; |
| 14 |
|
- if(pathname === '/bin/get/XWiki/LiveTableResults') { |
| 15 |
|
- event.respondWith( async function() { |
|
13 |
+ console.log(event.request.url); |
|
14 |
+ /*event.respondWith( async function() { |
| 16 |
16 |
let response = await fetch(event.request); |
| 17 |
17 |
let json = await response.json(); |
| 18 |
18 |
let rows = json.rows.filter(row => row.doc_viewable === true); |
| 19 |
|
- alert(JSON.stringify(rows)); |
|
18 |
+ console.log(rows); |
| 20 |
20 |
return response; |
| 21 |
|
- }); |
| 22 |
|
- } |
|
20 |
+ }) |
|
21 |
+ */ |
| 23 |
23 |
}); |