diff --git a/com.twin.app.shoptime/src/views/MainView/MainView.jsx b/com.twin.app.shoptime/src/views/MainView/MainView.jsx
index e9d6d522..e46d8383 100644
--- a/com.twin.app.shoptime/src/views/MainView/MainView.jsx
+++ b/com.twin.app.shoptime/src/views/MainView/MainView.jsx
@@ -835,13 +835,13 @@ export default function MainView({ className, initService }) {
left: "0",
bottom: "0",
color: "#fff",
- fontSize: "11px",
+ fontSize: "12px",
opacity: ".9",
zIndex: "999",
backgroundColor: "rgba(0,0,0,0.7)",
- padding: "8px",
- width: "700px",
- height: "550px",
+ padding: "6px",
+ width: "800px",
+ height: "700px",
borderRadius: "5px",
fontFamily: "monospace",
overflow: "hidden",
@@ -853,66 +853,30 @@ export default function MainView({ className, initService }) {
π Deep Link Debug Info
-
+
{/* Left Column */}
-
- {/* Current State */}
-
-
- π Current:
-
-
- isDeepLink:{" "}
-
- {deepLinkInfo.isDeepLink ? "β" : "β"}
-
-
-
- contentTarget:{" "}
-
- {deepLinkInfo.contentTarget || "MISSING"}
-
-
-
- panels: {panels.length}, top:{" "}
- {panels.length > 0 ? panels[panels.length - 1].name : "none"}
-
-
-
+
{/* App Status */}
-
-
+
+
π± System:
webOS: {appStatus.webOSVersion || "unknown"}
-
- deviceId:{" "}
- {appStatus.deviceId
- ? appStatus.deviceId.substring(0, 8) + "..."
- : "unknown"}
-
+
deviceId: {appStatus.deviceId || "unknown"}
server: {appStatus.serverHOST || "unknown"}
{/* Redux State */}
-
+
πͺ Redux:
deepLink: {JSON.stringify(deepLinkInfo)}
@@ -921,94 +885,120 @@ export default function MainView({ className, initService }) {
{/* Right Column */}
-
+
{/* Launch Params */}
-
-
+
+
π± Launch Params:
{(() => {
try {
- if (
- !(
- typeof window === "object" &&
- window.PalmSystem &&
- window.PalmSystem.launchParams
- )
- ) {
- return (
-
- No webOS environment
-
- );
- }
+ // νμ λͺ¨λ μ 보λ₯Ό νμ
+ const hasWebOS =
+ typeof window === "object" &&
+ window.PalmSystem &&
+ window.PalmSystem.launchParams;
- const raw = window.PalmSystem.launchParams;
- const parsed = JSON.parse(raw);
- const containerFlag = parsed["x-webos-app-container-launch"];
- const finalParams =
- containerFlag === true ? parsed.details : parsed;
- const contentTarget = finalParams.contentTarget;
+ let raw = "N/A";
+ let parsed = {};
+ let containerFlag = "N/A";
+ let finalParams = {};
+ let contentTarget = "N/A";
+ let parseError = null;
+
+ if (hasWebOS) {
+ try {
+ raw = window.PalmSystem.launchParams;
+ parsed = JSON.parse(raw);
+ containerFlag = parsed["x-webos-app-container-launch"];
+ finalParams =
+ containerFlag === true ? parsed.details : parsed;
+ contentTarget = finalParams.contentTarget;
+ } catch (e) {
+ parseError = e.message;
+ }
+ }
return (
<>
-
raw: {raw.substring(0, 50)}...
-
containerFlag: {String(containerFlag)}
+
+
+ webOSνκ²½: {hasWebOS ? "β" : "β"}
+
+
+
+
+
+ raw (μ΅μ΄ νλΌλ―Έν°):
+
+
+ {raw}
+
+
+
+
+ containerFlag: {String(containerFlag)}
+
+
+
+
initialParse:
+
+ {JSON.stringify(parsed, null, 2)}
+
+
+
+
+
finalParams:
+
+ {JSON.stringify(finalParams, null, 2)}
+
+
+
contentTarget:{" "}
{contentTarget || "MISSING"}
- >
- );
- } catch (e) {
- return (
-
Error: {e.message}
- );
- }
- })()}
-
- {/* Real-time Check */}
-
-
- π Real-time:
-
- {(() => {
- try {
- let currentParams = {};
- if (
- typeof window === "object" &&
- window.PalmSystem &&
- window.PalmSystem.launchParams
- ) {
- currentParams = JSON.parse(window.PalmSystem.launchParams);
- if (
- currentParams["x-webos-app-container-launch"] === true
- ) {
- currentParams = currentParams.details;
- }
- }
- return (
- <>
-
time: {new Date().toLocaleTimeString()}
-
- current:{" "}
-
- {currentParams.contentTarget || "MISSING"}
-
-
+ {parseError && (
+
+ Parse Error: {parseError}
+
+ )}
>
);
} catch (e) {
@@ -1020,36 +1010,6 @@ export default function MainView({ className, initService }) {
-
- {/* Parsed Deep Link */}
- {deepLinkInfo.contentTarget && (
-
-
- π Parsed:
-
- {(() => {
- const tokens = deepLinkInfo.contentTarget.split("_");
- if (tokens[0] === "V2" || tokens[0] === "V3") {
- return (
- <>
-
- Version: {tokens[0]}, Code: {tokens[1]}, Name: {tokens[2]}
- , Type: {tokens[3]}
-
- {tokens.length > 4 && (
-
Extra: {tokens.slice(4).join("_")}
- )}
- >
- );
- }
- return (
-
β Not V2/V3 format
- );
- })()}
-
- )}
);