service worker fixes
This commit is contained in:
parent
262659d4fe
commit
85e2cceca5
5 changed files with 137 additions and 59 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue