From 0db4ea92a3b511681c7d5f1124d1316c2c1f6532 Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Tue, 7 Mar 2023 08:59:29 +1100 Subject: [PATCH] remove backup warning --- public/js/detect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/detect.js b/public/js/detect.js index 33d76a4..4b5df9d 100644 --- a/public/js/detect.js +++ b/public/js/detect.js @@ -24,9 +24,9 @@ function addDatabaseBackupRestoreWarning() { document.body.appendChild(alertsystemdiv); } -if (window.document.location.hostname == "archblox.com" || window.document.location.hostname == "localhost") { +if (window.document.location.hostname == "archblox.com" || window.document.location.hostname == "localhost" || window.document.location.hostname == "127.0.0.1" || window.document.location.hostname == "127.0.0.1:8000") { console.log("User is on " + window.document.location.hostname + ". Supported URL."); - addDatabaseBackupRestoreWarning(); + //addDatabaseBackupRestoreWarning(); -- only when the sever is backing up. } else { console.log("User is on " + window.document.location.hostname + ". Unsupported/legacy URL."); addWarning();