나의 찾기 자동 생성 헤더 오류 수정
This commit is contained in:
+5
-2
@@ -475,6 +475,7 @@ function ensureFindMyDeviceShell() {
|
|||||||
<div id="mySettingContainer" style="user-select: none;">
|
<div id="mySettingContainer" style="user-select: none;">
|
||||||
<div id="settingsHeader">
|
<div id="settingsHeader">
|
||||||
<a id="blogBackLink"></a>
|
<a id="blogBackLink"></a>
|
||||||
|
<div class="headerTitle"></div>
|
||||||
<div id="langToggle"><img alt="Language Toggle" src="/custom/findmydevice/img/language-empty.svg" /></div>
|
<div id="langToggle"><img alt="Language Toggle" src="/custom/findmydevice/img/language-empty.svg" /></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="toggleContent" style="padding-bottom:80px;">
|
<div id="toggleContent" style="padding-bottom:80px;">
|
||||||
@@ -969,8 +970,10 @@ function applyLanguage(langCode) {
|
|||||||
labelPwa: t.pwa,
|
labelPwa: t.pwa,
|
||||||
};
|
};
|
||||||
|
|
||||||
document.getElementById('blogBackLink').innerHTML = `<span class="backArrow">‹</span> ${t.blog}`;
|
const blogBackLink = document.getElementById('blogBackLink');
|
||||||
document.querySelector('.headerTitle').textContent = t.title;
|
if (blogBackLink) blogBackLink.innerHTML = `<span class="backArrow">‹</span> ${t.blog}`;
|
||||||
|
const headerTitle = document.querySelector('.headerTitle');
|
||||||
|
if (headerTitle) headerTitle.textContent = t.title;
|
||||||
|
|
||||||
for (const id in titleMap) {
|
for (const id in titleMap) {
|
||||||
const el = document.getElementById(id);
|
const el = document.getElementById(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user