diff --git a/script.js b/script.js index e9cf4f4..09152bb 100644 --- a/script.js +++ b/script.js @@ -2155,12 +2155,9 @@ function applyBranding(branding) { if (logoUrl) { headerLogo.src = logoUrl; headerLogo.style.display = ''; if (headerIcon) headerIcon.style.display = 'none'; } else { headerLogo.style.display = 'none'; if (headerIcon) headerIcon.style.display = ''; } } - // Kun logo on, näytetään vain "Hallintapaneeli" — logo kertoo yrityksen - if (headerTitle) headerTitle.textContent = logoUrl ? 'Hallintapaneeli' : nimi; - if (headerSubtitle) { - if (logoUrl) { headerSubtitle.style.display = 'none'; } - else { headerSubtitle.style.display = ''; headerSubtitle.textContent = subtitle || 'Hallintapaneeli'; } - } + // Kun logo on, piilotetaan tekstit — logo riittää + if (headerTitle) { headerTitle.style.display = logoUrl ? 'none' : ''; if (!logoUrl) headerTitle.textContent = nimi; } + if (headerSubtitle) { headerSubtitle.style.display = logoUrl ? 'none' : ''; if (!logoUrl) headerSubtitle.textContent = subtitle || ''; } // Sivun title document.title = nimi;