Make it on load again??
This commit is contained in:
parent
614d202a90
commit
f3b0af0212
1 changed files with 5 additions and 3 deletions
8
index.js
8
index.js
|
@ -291,7 +291,8 @@ function pageUpdate() {
|
||||||
html = html.replace("{OPPOSITE_BRANCH}", "Beta")
|
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
|
// Lanyard Stuffs
|
||||||
|
@ -319,11 +320,12 @@ lanyard.addEventListener("message", (res) => {
|
||||||
}))
|
}))
|
||||||
} else if (data.op == 0) {
|
} else if (data.op == 0) {
|
||||||
lanyardData = data.d
|
lanyardData = data.d
|
||||||
pageUpdate()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
pageUpdate()
|
app.get('/', (req, res) => {
|
||||||
|
res.send(pageUpdate())
|
||||||
|
})
|
||||||
|
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
res.status(404).send(`
|
res.status(404).send(`
|
||||||
|
|
Loading…
Reference in a new issue