From 71b65e70a8359827b35fe63379fc5da10c5bb7dc Mon Sep 17 00:00:00 2001 From: SamidyFR <168582143+SamidyFR@users.noreply.github.com> Date: Tue, 10 Mar 2026 07:45:19 +0000 Subject: [PATCH] style: auto-fix linting issues --- js/ui.js | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/js/ui.js b/js/ui.js index ed60cdc..0b6ef28 100644 --- a/js/ui.js +++ b/js/ui.js @@ -1631,28 +1631,27 @@ export class UIRenderer { this.updateGlobalTheme(); } - - const downloadsdisabled = true; - if (downloadsdisabled == true) { - if (pageId === 'download') { - const maintenanceModal = document.getElementById('maintenance-modal'); - const maintenanceHomeBtn = document.getElementById('maintenance-home-btn'); - if (maintenanceModal) { - maintenanceModal.classList.add('active'); - if (maintenanceHomeBtn) { - maintenanceHomeBtn.onclick = () => { - maintenanceModal.classList.remove('active'); - navigate('/'); - }; + const downloadsdisabled = true; + if (downloadsdisabled == true) { + if (pageId === 'download') { + const maintenanceModal = document.getElementById('maintenance-modal'); + const maintenanceHomeBtn = document.getElementById('maintenance-home-btn'); + if (maintenanceModal) { + maintenanceModal.classList.add('active'); + if (maintenanceHomeBtn) { + maintenanceHomeBtn.onclick = () => { + maintenanceModal.classList.remove('active'); + navigate('/'); + }; + } + } + } else { + const maintenanceModal = document.getElementById('maintenance-modal'); + if (maintenanceModal) { + maintenanceModal.classList.remove('active'); } } - } else { - const maintenanceModal = document.getElementById('maintenance-modal'); - if (maintenanceModal) { - maintenanceModal.classList.remove('active'); - } } - } if (pageId === 'settings') { this.renderApiSettings(); const savedTabName = settingsUiState.getActiveTab();