Revert "deeplink debug 코드 추가"

This reverts commit 9bc8d6f68f.
This commit is contained in:
opacity@t-win.kr
2025-08-22 11:07:52 +09:00
parent 9bc8d6f68f
commit 0303e9d2ae
8 changed files with 164 additions and 633 deletions

View File

@@ -150,56 +150,21 @@ let localLaunchParams = {
export const getLaunchParams = () => {
let params = {};
// 🔍 DEEPLINK DEBUG: Launch Parameters 파싱 과정 확인
console.log("🔍 [DEEPLINK DEBUG] ===== getLaunchParams 실행 =====");
console.log(
"🔍 [DEEPLINK DEBUG] window 객체 존재:",
typeof window === "object"
);
console.log(
"🔍 [DEEPLINK DEBUG] PalmSystem 존재:",
!!(typeof window === "object" && window.PalmSystem)
);
console.log(
"🔍 [DEEPLINK DEBUG] launchParams 존재:",
!!(
typeof window === "object" &&
window.PalmSystem &&
window.PalmSystem.launchParams
)
);
if (
typeof window === "object" &&
window.PalmSystem &&
window.PalmSystem.launchParams
) {
console.log(
"🔍 [DEEPLINK DEBUG] 원본 launchParams:",
window.PalmSystem.launchParams
);
try {
params = JSON.parse(window.PalmSystem.launchParams);
console.log("🔍 [DEEPLINK DEBUG] JSON 파싱 성공:", params);
if (params["x-webos-app-container-launch"] === true) {
console.log(
"🔍 [DEEPLINK DEBUG] x-webos-app-container-launch 감지 - details 사용"
);
params = params.details;
console.log("🔍 [DEEPLINK DEBUG] details 파라미터:", params);
}
} catch (e) {
console.log("🔍 [DEEPLINK DEBUG] ❌ JSON 파싱 실패:", e);
params = {};
}
console.log("🔍 [DEEPLINK DEBUG] ✅ 최종 params:", params);
return params;
} else {
console.log(
"🔍 [DEEPLINK DEBUG] ⚠️ PalmSystem 없음 - localLaunchParams 사용"
);
console.log("🔍 [DEEPLINK DEBUG] localLaunchParams:", localLaunchParams);
return localLaunchParams;
}
};