From f3b0af0212355689583d397a1b2f86e0743b516d Mon Sep 17 00:00:00 2001 From: Violet Date: Fri, 26 Jan 2024 18:23:38 +0000 Subject: [PATCH] Make it on load again?? --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 7557c2d..1e96e58 100644 --- a/index.js +++ b/index.js @@ -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(`