diff --git a/js/main.js b/js/main.js index 6f01cbb..d670512 100644 --- a/js/main.js +++ b/js/main.js @@ -475,6 +475,7 @@ function ensureFindMyDeviceShell() {
+
Language Toggle
@@ -969,8 +970,10 @@ function applyLanguage(langCode) { labelPwa: t.pwa, }; - document.getElementById('blogBackLink').innerHTML = ` ${t.blog}`; - document.querySelector('.headerTitle').textContent = t.title; + const blogBackLink = document.getElementById('blogBackLink'); + if (blogBackLink) blogBackLink.innerHTML = ` ${t.blog}`; + const headerTitle = document.querySelector('.headerTitle'); + if (headerTitle) headerTitle.textContent = t.title; for (const id in titleMap) { const el = document.getElementById(id);