Revert "launchparams 정보 확인"

This reverts commit 162fe77068.
This commit is contained in:
opacity@t-win.kr
2025-08-29 09:46:42 +09:00
parent 162fe77068
commit f044fe39df

View File

@@ -837,11 +837,12 @@ export default function MainView({ className, initService }) {
opacity: "0.9",
zIndex: "999",
backgroundColor: "rgba(0,0,0,0.8)",
padding: "5px",
padding: "15px",
width: "600px",
height: "800px",
height: "400px",
borderRadius: "8px",
fontFamily: "monospace",
overflow: "auto",
boxSizing: "border-box",
}}
>
@@ -849,30 +850,62 @@ export default function MainView({ className, initService }) {
style={{
color: "#00ff00",
fontWeight: "bold",
marginBottom: "5px",
fontSize: "10px",
marginBottom: "15px",
fontSize: "14px",
}}
>
🔗 딥링크 디버그 정보
</div>
{/* contentTarget 정보 */}
<div style={{ marginBottom: "5px" }}>
<div style={{ color: "#ffff00" }}>📱 Redux contentTarget:</div>
<div>{deepLinkInfo.contentTarget || "없음"}</div>
<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: "5px" }}>
<div style={{ color: "#ffff00" }}>
<div style={{ marginBottom: "20px" }}>
<div style={{ color: "#ffff00", marginBottom: "5px" }}>
📱 window.PalmSystem.launchParams:
</div>
<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 JSON.stringify(window.PalmSystem);
}
if (!window.PalmSystem) {
return "❌ PalmSystem 없음";
}
@@ -887,36 +920,13 @@ export default function MainView({ className, initService }) {
// JSON 파싱 시도
const parsed = JSON.parse(window.PalmSystem.launchParams);
return JSON.stringify(parsed);
return JSON.stringify(parsed, null, 2);
} 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>
);