service worker fixes

This commit is contained in:
MathMan05 2024-10-30 15:31:41 -05:00
parent 262659d4fe
commit 85e2cceca5
5 changed files with 137 additions and 59 deletions

View file

@ -102,10 +102,6 @@ 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);
try{
await fs.access(filePath);