launchparams 정보 확인

This commit is contained in:
opacity@t-win.kr
2025-08-28 16:48:12 +09:00
parent f909883b03
commit 162fe77068

View File

@@ -837,12 +837,11 @@ export default function MainView({ className, initService }) {
opacity: "0.9",
zIndex: "999",
backgroundColor: "rgba(0,0,0,0.8)",
padding: "15px",
padding: "5px",
width: "600px",
height: "400px",
height: "800px",
borderRadius: "8px",
fontFamily: "monospace",
overflow: "auto",
boxSizing: "border-box",
}}
>
@@ -850,62 +849,30 @@ export default function MainView({ className, initService }) {
style={{
color: "#00ff00",
fontWeight: "bold",
marginBottom: "15px",
fontSize: "14px",
marginBottom: "5px",
fontSize: "10px",
}}
>
🔗 딥링크 디버그 정보
</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 style={{ marginBottom: "5px" }}>
<div style={{ color: "#ffff00" }}>📱 Redux contentTarget:</div>
<div>{deepLinkInfo.contentTarget || "없음"}</div>
</div>
{/* launchParams 정보 */}
<div style={{ marginBottom: "20px" }}>
<div style={{ color: "#ffff00", marginBottom: "5px" }}>
<div style={{ marginBottom: "5px" }}>
<div style={{ color: "#ffff00" }}>
📱 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",
}}
>
<div>
{(() => {
try {
// window와 PalmSystem 존재 여부 확인
if (typeof window !== "object") {
return "❌ window 객체 없음";
}
if (window.PalmSystem) {
return JSON.stringify(window.PalmSystem);
}
if (!window.PalmSystem) {
return "❌ PalmSystem 없음";
}
@@ -920,13 +887,36 @@ export default function MainView({ className, initService }) {
// JSON 파싱 시도
const parsed = JSON.parse(window.PalmSystem.launchParams);
return JSON.stringify(parsed, null, 2);
return JSON.stringify(parsed);
} catch (e) {
return `❌ 파싱 에러: ${e.message}\n원본 값: ${window.PalmSystem?.launchParams || "undefined"}`;
}
})()}
</div>
</div>
{/* PalmSystem 전체 정보 */}
<div style={{ marginBottom: "5px" }}>
<div style={{ color: "#ffff00" }}>📱 window.PalmSystem 정보:</div>
<div>
{(() => {
try {
if (typeof window !== "object") {
return "❌ window 객체 없음";
}
if (!window.PalmSystem) {
return "❌ PalmSystem 없음";
}
// PalmSystem의 모든 속성 확인
const palmSystemInfo = JSON.stringify(window.PalmSystem);
return palmSystemInfo;
} catch (e) {
return `❌ 에러: ${e.message}`;
}
})()}
</div>
</div>
</div>
</div>
);