Source code

Revision control

Copy as Markdown

Other Tools

var requests = [];
self.addEventListener('message', function(event) {
event.data.port.postMessage({requests: requests});
requests = [];
});
self.addEventListener('fetch', function(event) {
let maybeHeader = event.request.headers.get('Sec-Shared-Storage-Writable');
requests.push({
url: event.request.url,
mode: event.request.mode,
SSWHeader: String(maybeHeader),
});
});