Revert "debug 수정"

This reverts commit facfdffb70.
This commit is contained in:
opacity@t-win.kr
2025-08-29 09:46:42 +09:00
parent 7a8a897c6e
commit ccddcd47fa

View File

@@ -673,7 +673,9 @@ export default function MainView({ className, initService }) {
}, [dispatch, popupData, activePopup, topPanel?.name]); }, [dispatch, popupData, activePopup, topPanel?.name]);
// 딥링크 확인 테스트 // 딥링크 확인 테스트
const deepLinkInfo = useSelector((state) => state.common.deepLinkInfo); const contentTarget = useSelector(
(state) => state.common.deepLinkInfo.contentTarget
);
return ( return (
<div <div
className={classNames(css.mainViewWrap, className)} className={classNames(css.mainViewWrap, className)}
@@ -833,98 +835,20 @@ export default function MainView({ className, initService }) {
left: "0", left: "0",
bottom: "0", bottom: "0",
color: "#fff", color: "#fff",
fontSize: "12px", fontSize: "13px",
opacity: "0.9", opacity: ".5",
zIndex: "999", zIndex: "999",
backgroundColor: "rgba(0,0,0,0.8)", backgroundColor: "black",
padding: "15px", padding: "10px",
width: "600px",
height: "400px",
borderRadius: "8px",
fontFamily: "monospace",
overflow: "auto",
boxSizing: "border-box",
}} }}
> >
<div deepLinkInfo
style={{ <p>{contentTarget}</p>
color: "#00ff00", <p>
fontWeight: "bold", {window.PalmSystem && window.PalmSystem.launchParams
marginBottom: "15px", ? JSON.parse(window.PalmSystem.launchParams)
fontSize: "14px", : "N/A"}
}} </p>
>
🔗 딥링크 디버그 정보
</div>
{/* contentTarget 정보 */}
<div style={{ marginBottom: "20px" }}>
<div style={{ color: "#ffff00", marginBottom: "5px" }}>
📱 Redux contentTarget:
</div>
<div
style={{
color: "#ffffff",
marginLeft: "10px",
padding: "5px",
backgroundColor: "rgba(255,255,255,0.1)",
borderRadius: "3px",
}}
>
{deepLinkInfo.contentTarget || "없음"}
</div>
<div style={{ color: "#cccccc", fontSize: "10px", marginTop: "3px" }}>
isDeepLink: {deepLinkInfo.isDeepLink ? "true" : "false"}
</div>
</div>
{/* launchParams 정보 */}
<div style={{ marginBottom: "20px" }}>
<div style={{ color: "#ffff00", marginBottom: "5px" }}>
📱 window.PalmSystem.launchParams:
</div>
<div
style={{
color: "#ffffff",
marginLeft: "10px",
fontSize: "11px",
whiteSpace: "pre-wrap",
wordBreak: "break-all",
padding: "5px",
backgroundColor: "rgba(255,255,255,0.1)",
borderRadius: "3px",
maxHeight: "200px",
overflow: "auto",
}}
>
{(() => {
try {
// window와 PalmSystem 존재 여부 확인
if (typeof window !== "object") {
return "❌ window 객체 없음";
}
if (!window.PalmSystem) {
return "❌ PalmSystem 없음";
}
if (!window.PalmSystem.launchParams) {
return "❌ launchParams 없음 (undefined/null)";
}
if (window.PalmSystem.launchParams === "") {
return "❌ launchParams 빈 문자열";
}
// JSON 파싱 시도
const parsed = JSON.parse(window.PalmSystem.launchParams);
return JSON.stringify(parsed, null, 2);
} catch (e) {
return `❌ 파싱 에러: ${e.message}\n원본 값: ${window.PalmSystem?.launchParams || "undefined"}`;
}
})()}
</div>
</div>
</div> </div>
</div> </div>
); );