From e30a3a552178e583ee52eae4d6c3baab43294583 Mon Sep 17 00:00:00 2001 From: Holly Date: Tue, 22 Feb 2022 10:02:30 +0000 Subject: [PATCH] this bool never did anything other than toggle this thing --- Binato.js | 12 ++---------- web/serverPage.html | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Binato.js b/Binato.js index 8616a66..9429790 100644 --- a/Binato.js +++ b/Binato.js @@ -10,8 +10,6 @@ const app = require("express")(), serverHandler = require("./server/serverHandler.js"), config = require("./config.json"); -const debugMode = true; - if (config.prometheusEnabled) { // We only need to require this if prom metrics are on. const prom = require("prom-client"); @@ -42,14 +40,8 @@ app.use((req, res) => { req.on("end", () => { switch (req.method) { case "GET": - if (req.url == "/" || req.url == "/index.html" || req.url == "/index.html") { - fs.readFile("./web/serverPage.html", (err, data) => { - if (err) throw err; - - if (debugMode) data = data.toString().replace("|isdebug?|", 'DEBUG'); - else data = data.toString().replace("|isdebug?|", ''); - res.send(data); - }); + if (req.url == "/" || req.url == "/index.html" || req.url == "/index") { + res.sendFile(`${__dirname}/web/serverPage.html`); } else if (req.url == "/chat") { fs.readFile("./web/chatPageTemplate.html", (err, data) => { if (err) throw err; diff --git a/web/serverPage.html b/web/serverPage.html index 78acee6..dbede94 100644 --- a/web/serverPage.html +++ b/web/serverPage.html @@ -7,7 +7,6 @@
  
   .  o ..
-  o . o o.o                           |isdebug?|
        ...oo
           __[]__         Binato
        __|_o_o_o\__        A custom osu!Bancho