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