blob: cdfee8949dd66309c08687aed623e9bdbfc08c0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
self.addEventListener("fetch", function(event) {
if (event.request.url.includes("synth.html")) {
var body =
"<script>" +
'window.parent.postMessage({status: "done", cookie: document.cookie}, "*");' +
"</script>";
event.respondWith(
new Response(body, { headers: { "Content-Type": "text/html" } })
);
}
});
|