복귀 링크와 설정 토글 표시 정리

This commit is contained in:
seo
2026-07-01 01:04:45 +09:00
parent eeef4c008d
commit bd167f4d14
2 changed files with 10 additions and 9 deletions
+8 -7
View File
@@ -459,7 +459,7 @@ let langCode = localStorage.getItem("currentLang") || deviceLang,
_overrideRange,
wakeLock = null;
const FALLBACK_BACK_TARGET = 'https://chaegeon.com/blog';
const FALLBACK_BACK_TARGET = 'https://chaegeon.com/';
const BACK_LINK_PATH_TITLE = {
'/': '채건닷컴',
'/home': '홈',
@@ -494,9 +494,10 @@ async function resolveBackTarget() {
const ref = sameSiteUrl(document.referrer || '');
const current = new URL(location.href);
const target = ref && ref.href !== current.href ? ref.href : FALLBACK_BACK_TARGET;
let title = titleFromBackUrl(target);
const knownTitle = titleFromBackUrl(target);
let title = knownTitle;
if (ref && ref.origin === location.origin) {
if (!knownTitle && ref && ref.origin === location.origin) {
try {
const res = await fetch(ref.href, { credentials: 'same-origin', cache: 'force-cache' });
if (res.ok) {
@@ -521,7 +522,7 @@ function setupBackLink() {
if (!blogBackLink) return;
blogBackLink.href = FALLBACK_BACK_TARGET;
blogBackLink.dataset.backLabel = '블로그';
blogBackLink.dataset.backLabel = '채건닷컴';
updateBackLinkLabel(blogBackLink.dataset.backLabel);
resolveBackTarget().then(({ href, label }) => {
@@ -559,7 +560,7 @@ function ensureFindMyDeviceShell() {
<div id="mapContainer"><div id="map" style="width:100%; height:100%;">&nbsp;</div></div>
<div class="settingTitle"><span id="titleSettings"></span></div>
<div class="settingSection">
<div class="settingRow" id="wakeLockRow"><span id="labelKeepScreenOn"></span><label class="iosSwitch"><input id="wakeLockSwitch" type="checkbox" /></label></div>
<div class="settingRow" id="wakeLockRow"><span id="labelKeepScreenOn"></span><label class="iosSwitch"><input id="wakeLockSwitch" type="checkbox" /><span class="slider"></span></label></div>
</div>
<div class="settingTitle"><span id="titleHistory"></span></div>
<div class="settingSection">
@@ -571,14 +572,14 @@ function ensureFindMyDeviceShell() {
<div class="settingSection">
<div class="settingRow"><span id="labelCurrentPosition"></span><span id="currentPosition"></span></div>
<div class="settingRow"><span id="labelGpsAccuracy"></span><span id="accuracyValue"></span></div>
<div class="settingRow" id="autoLocateBtn"><span id="labelCurrentAutoPosition"></span><label class="iosSwitch"><input id="autoPositionSwitch" type="checkbox" /></label></div>
<div class="settingRow" id="autoLocateBtn"><span id="labelCurrentAutoPosition"></span><label class="iosSwitch"><input id="autoPositionSwitch" type="checkbox" /><span class="slider"></span></label></div>
<div class="settingRow locateRow" id="locateBtn"><span id="labelMoveToCurrent"></span></div>
</div>
<div class="settingTitle"><span id="titleUpdate"></span></div>
<div class="settingSection">
<div class="settingRow"><span id="labelLastUpdate"></span><span id="lastUpdateTime"></span></div>
<div class="settingRow"><span id="labelUpdateTrigger"></span><span id="updateTrigger"></span></div>
<div class="settingRow" id="autoUpdateBtn"><span id="labelAutoUpdate"></span><label class="iosSwitch"><input id="autoUpdateSwitch" type="checkbox" /></label></div>
<div class="settingRow" id="autoUpdateBtn"><span id="labelAutoUpdate"></span><label class="iosSwitch"><input id="autoUpdateSwitch" type="checkbox" /><span class="slider"></span></label></div>
<div class="settingRow locateRow" id="updateBtn"><span id="labelForceUpdate"></span></div>
</div>
<div class="settingTitle"><span id="titleBattery"></span></div>