From 7a0ad54639229e33d77c8928cb6f0020ca7b04bf Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Sun, 1 Oct 2023 22:41:02 -0500 Subject: [PATCH] TODO: Use env var for maintenance checks --- public/scripts/maintenance.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/scripts/maintenance.js b/public/scripts/maintenance.js index bfce85e..b0ac308 100644 --- a/public/scripts/maintenance.js +++ b/public/scripts/maintenance.js @@ -1,13 +1,13 @@ -maintenance = false +maintenance = false //TODO: Use env var instead if (maintenance) { if (window.location.href.indexOf("maintenance") == -1) { document.getElementById("Maintenance").innerHTML = `Warning:
Site under maintenance.
Be warned, site may be unstable.
` } document.getElementById("Maintenance").removeAttribute("hidden") - if (window.location.href.indexOf("maintenance") == -1 && window.location.href.indexOf('id') == -1) { - window.location.href = "/maintenance" -} + //if (window.location.href.indexOf("maintenance") == -1 && window.location.href.indexOf('id') == -1) { + //window.location.href = "/maintenance" + //} } else if (!(window.location.href.indexOf("maintenance") == -1)) { document.getElementById("Maintenance").innerHTML = `Website not under maintenance.` } -console.info("Maintenance Script done.") \ No newline at end of file +console.info("Maintenance Script done.")