From 65ad34f6298036e4bb5b869e45bc50b6670173ad Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 25 Sep 2024 12:59:13 -0500 Subject: [PATCH] sink service worker again --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e1a30c3..3a08855 100644 --- a/src/index.ts +++ b/src/index.ts @@ -101,7 +101,10 @@ app.use("/", async (req: Request, res: Response)=>{ res.sendFile(path.join(__dirname, "webpage", "invite.html")); return; } - + if(req.path.endsWith("service.js")){ + res.send("nope :3"); + return; + } const filePath = path.join(__dirname, "webpage", req.path); if(fs.existsSync(filePath)){ if(devmode){