blob: c19efb5f2f3fe5469b63b5772c875d9e62fb47b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
self.addEventListener('fetch', event => {
event.waitUntil(async function () {
if (!event.clientId) return;
const client = await clients.get(event.clientId);
if (!client) return;
client.postMessage({
fetchUrl: event.request.url,
topicsHeader: String(event.request.headers.get("Sec-Browsing-Topics"))
});
}());
});
|