chore: prettier

This commit is contained in:
Percs 2024-10-26 22:56:20 -05:00
parent b9be6e8c7a
commit e6dec20f3c

View file

@ -41,12 +41,18 @@ scramjet.addEventListener("request", (e) => {
e.response = new Response(playgroundData.html, {
headers,
});
} else if (playgroundData && e.url.href === playgroundData.origin + "/style.css") {
} else if (
playgroundData &&
e.url.href === playgroundData.origin + "/style.css"
) {
headers["content-type"] = "text/css";
e.response = new Response(playgroundData.css, {
headers,
});
} else if (playgroundData && e.url.href === playgroundData.origin + "/script.js") {
} else if (
playgroundData &&
e.url.href === playgroundData.origin + "/script.js"
) {
headers["content-type"] = "application/javascript";
e.response = new Response(playgroundData.js, {
headers,