blob: 3b028b24bde44d6ef95da40e27bfd96c93973a1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var requests = [];
self.addEventListener('message', function(event) {
event.data.port.postMessage({requests: requests});
requests = [];
});
self.addEventListener('fetch', function(event) {
requests.push({
url: event.request.url,
mode: event.request.mode
});
});
|