Source code

Revision control

Copy as Markdown

Other Tools

self.onmessage = msg => {
if (msg.data == "getCookies") {
fetch("cookies.sjs")
.then(response => response.text())
.then(data => postMessage(data));
return;
}
self.postMessage(msg.data);
};