sink service worker again
This commit is contained in:
@@ -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){
|
||||||
|
Reference in New Issue
Block a user