deeplink launchparams 정보 추출
This commit is contained in:
@@ -63,6 +63,7 @@ import { panel_names } from "../../utils/Config";
|
|||||||
import {
|
import {
|
||||||
$L,
|
$L,
|
||||||
getErrorMessage,
|
getErrorMessage,
|
||||||
|
getLaunchParams,
|
||||||
getSpottableDescendants,
|
getSpottableDescendants,
|
||||||
} from "../../utils/helperMethods";
|
} from "../../utils/helperMethods";
|
||||||
import { SpotlightIds } from "../../utils/SpotlightIds";
|
import { SpotlightIds } from "../../utils/SpotlightIds";
|
||||||
@@ -673,6 +674,7 @@ export default function MainView({ className, initService }) {
|
|||||||
}, [dispatch, popupData, activePopup, topPanel?.name]);
|
}, [dispatch, popupData, activePopup, topPanel?.name]);
|
||||||
|
|
||||||
// 딥링크 확인 테스트
|
// 딥링크 확인 테스트
|
||||||
|
const launchParams = getLaunchParams();
|
||||||
const deepLinkInfo = useSelector((state) => state.common.deepLinkInfo);
|
const deepLinkInfo = useSelector((state) => state.common.deepLinkInfo);
|
||||||
const secondLayerInfo = useSelector((state) => state.common.secondLayerInfo);
|
const secondLayerInfo = useSelector((state) => state.common.secondLayerInfo);
|
||||||
const appStatus = useSelector((state) => state.common.appStatus);
|
const appStatus = useSelector((state) => state.common.appStatus);
|
||||||
@@ -891,66 +893,11 @@ export default function MainView({ className, initService }) {
|
|||||||
<div style={{ color: "#ffff00", marginBottom: "0px" }}>
|
<div style={{ color: "#ffff00", marginBottom: "0px" }}>
|
||||||
📱 Launch Params:
|
📱 Launch Params:
|
||||||
</div>
|
</div>
|
||||||
{(() => {
|
{launchParams && launchParams.contentTarget ? (
|
||||||
let raw = window.PalmSystem?.launchParams || "{}";
|
<div>{launchParams}</div>
|
||||||
let parsed = JSON.parse(raw);
|
) : (
|
||||||
let containerFlag = parsed["x-webos-app-container-launch"];
|
<div>N/A</div>
|
||||||
let finalParams =
|
)}
|
||||||
containerFlag === true ? parsed.details : parsed;
|
|
||||||
let contentTarget = finalParams?.contentTarget || "N/A";
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div style={{ marginBottom: "1px" }}>
|
|
||||||
<div style={{ color: "#ffff00" }}>
|
|
||||||
raw (최초 파라미터):
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontSize: "10px",
|
|
||||||
color: "#cccccc",
|
|
||||||
marginLeft: "5px",
|
|
||||||
whiteSpace: "pre-wrap",
|
|
||||||
wordBreak: "break-all",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{raw}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style={{ marginBottom: "1px" }}>
|
|
||||||
<div style={{ color: "#ffff00" }}>finalParams:</div>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontSize: "10px",
|
|
||||||
color: "#cccccc",
|
|
||||||
marginLeft: "5px",
|
|
||||||
whiteSpace: "pre-wrap",
|
|
||||||
wordBreak: "break-all",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{JSON.stringify(finalParams, null, 2)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<div>
|
|
||||||
contentTarget:{" "}
|
|
||||||
<span
|
|
||||||
style={{
|
|
||||||
color:
|
|
||||||
contentTarget && contentTarget !== "N/A"
|
|
||||||
? "#00ff00"
|
|
||||||
: "#ff6666",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{contentTarget || "MISSING"}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
})()}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user