remove backup warning

This commit is contained in:
Thomas G 2023-03-07 08:59:29 +11:00
parent 01c5967df7
commit 0db4ea92a3
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ function addDatabaseBackupRestoreWarning() {
document.body.appendChild(alertsystemdiv); 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."); console.log("User is on " + window.document.location.hostname + ". Supported URL.");
addDatabaseBackupRestoreWarning(); //addDatabaseBackupRestoreWarning(); -- only when the sever is backing up.
} else { } else {
console.log("User is on " + window.document.location.hostname + ". Unsupported/legacy URL."); console.log("User is on " + window.document.location.hostname + ". Unsupported/legacy URL.");
addWarning(); addWarning();