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