External IP Lookup Disable Feature implemented with environment variable: DISABLE_EXTERNAL_IP_LOOKUP

This commit is contained in:
2026-01-14 19:13:46 +01:00
parent 5d52fbcba9
commit e997059e2a
4 changed files with 35 additions and 3 deletions

View File

@@ -3,7 +3,10 @@
window.addEventListener('DOMContentLoaded', function() {
showLoading(true);
displayExternalIP();
// Only display external IP if the element exists (not disabled via template variable)
if (document.getElementById('external-ip')) {
displayExternalIP();
}
// Initialize header components (clock and status indicator)
if (typeof initHeader === 'function') {