debug 수정
This commit is contained in:
@@ -673,9 +673,7 @@ export default function MainView({ className, initService }) {
|
||||
}, [dispatch, popupData, activePopup, topPanel?.name]);
|
||||
|
||||
// 딥링크 확인 테스트
|
||||
const contentTarget = useSelector(
|
||||
(state) => state.common.deepLinkInfo.contentTarget
|
||||
);
|
||||
const deepLinkInfo = useSelector((state) => state.common.deepLinkInfo);
|
||||
return (
|
||||
<div
|
||||
className={classNames(css.mainViewWrap, className)}
|
||||
@@ -835,20 +833,98 @@ export default function MainView({ className, initService }) {
|
||||
left: "0",
|
||||
bottom: "0",
|
||||
color: "#fff",
|
||||
fontSize: "13px",
|
||||
opacity: ".5",
|
||||
fontSize: "12px",
|
||||
opacity: "0.9",
|
||||
zIndex: "999",
|
||||
backgroundColor: "black",
|
||||
padding: "10px",
|
||||
backgroundColor: "rgba(0,0,0,0.8)",
|
||||
padding: "15px",
|
||||
width: "600px",
|
||||
height: "400px",
|
||||
borderRadius: "8px",
|
||||
fontFamily: "monospace",
|
||||
overflow: "auto",
|
||||
boxSizing: "border-box",
|
||||
}}
|
||||
>
|
||||
deepLinkInfo
|
||||
<p>{contentTarget}</p>
|
||||
<p>
|
||||
{window.PalmSystem && window.PalmSystem.launchParams
|
||||
? JSON.parse(window.PalmSystem.launchParams)
|
||||
: "N/A"}
|
||||
</p>
|
||||
<div
|
||||
style={{
|
||||
color: "#00ff00",
|
||||
fontWeight: "bold",
|
||||
marginBottom: "15px",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
🔗 딥링크 디버그 정보
|
||||
</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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user