From e6dec20f3c07ee6b78c899e43d015c62ddb48dd8 Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:56:20 -0500 Subject: [PATCH] chore: prettier --- static/sw.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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,