diff --git a/static/sw.js b/static/sw.js index b57af21..ee62275 100644 --- a/static/sw.js +++ b/static/sw.js @@ -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,