sink service worker again
This commit is contained in:
parent
5c4b5605ed
commit
65ad34f629
1 changed files with 4 additions and 1 deletions
|
@ -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){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue