blob: 03a0f0a9333a02328cfc5b44ae89bd69d5440b82 (
plain)
1
2
3
4
5
6
7
8
9
|
onactivate = e => e.waitUntil(clients.claim());
onfetch = e => {
const searchParams = new URL(e.request.url).searchParams;
if (searchParams.get("syntheticResponse") === "1") {
e.respondWith(new Response(String(searchParams)));
}
};
|