Make it on load again??

This commit is contained in:
Violet 2024-01-26 18:23:38 +00:00 committed by GitHub
parent 614d202a90
commit f3b0af0212

View file

@ -291,7 +291,8 @@ function pageUpdate() {
html = html.replace("{OPPOSITE_BRANCH}", "Beta")
}
fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
//fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
return html
}
// Lanyard Stuffs
@ -319,11 +320,12 @@ lanyard.addEventListener("message", (res) => {
}))
} else if (data.op == 0) {
lanyardData = data.d
pageUpdate()
}
})
pageUpdate()
app.get('/', (req, res) => {
res.send(pageUpdate())
})
app.use((req, res, next) => {
res.status(404).send(`