mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
chore: prettier
This commit is contained in:
parent
b9be6e8c7a
commit
e6dec20f3c
1 changed files with 8 additions and 2 deletions
10
static/sw.js
10
static/sw.js
|
@ -41,12 +41,18 @@ scramjet.addEventListener("request", (e) => {
|
||||||
e.response = new Response(playgroundData.html, {
|
e.response = new Response(playgroundData.html, {
|
||||||
headers,
|
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";
|
headers["content-type"] = "text/css";
|
||||||
e.response = new Response(playgroundData.css, {
|
e.response = new Response(playgroundData.css, {
|
||||||
headers,
|
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";
|
headers["content-type"] = "application/javascript";
|
||||||
e.response = new Response(playgroundData.js, {
|
e.response = new Response(playgroundData.js, {
|
||||||
headers,
|
headers,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue