sink service worker again

This commit is contained in:
MathMan05 2024-09-25 12:59:13 -05:00
parent 5c4b5605ed
commit 65ad34f629

View file

@ -101,7 +101,10 @@ app.use("/", async (req: Request, res: Response)=>{
res.sendFile(path.join(__dirname, "webpage", "invite.html")); res.sendFile(path.join(__dirname, "webpage", "invite.html"));
return; return;
} }
if(req.path.endsWith("service.js")){
res.send("nope :3");
return;
}
const filePath = path.join(__dirname, "webpage", req.path); const filePath = path.join(__dirname, "webpage", req.path);
if(fs.existsSync(filePath)){ if(fs.existsSync(filePath)){
if(devmode){ if(devmode){