@@ -35,7 +35,6 @@ import {
|
||||
getSystemSettings,
|
||||
checkFirstLaunch,
|
||||
setDeepLink,
|
||||
setDeepLinkDebug,
|
||||
setGNBMenu,
|
||||
setSecondLayerInfo,
|
||||
} from "../actions/commonActions";
|
||||
@@ -253,45 +252,7 @@ function AppBase(props) {
|
||||
dispatch(getMyUpcomingAlertShow());
|
||||
}
|
||||
|
||||
const launchParams = getLaunchParams();
|
||||
|
||||
// 디버그 정보 직접 수집
|
||||
let debugInfo = {
|
||||
rawLaunchParams: "",
|
||||
parsedParams: null,
|
||||
finalParams: null,
|
||||
containerLaunch: false,
|
||||
parseError: null,
|
||||
};
|
||||
|
||||
if (
|
||||
typeof window === "object" &&
|
||||
window.PalmSystem &&
|
||||
window.PalmSystem.launchParams
|
||||
) {
|
||||
try {
|
||||
debugInfo.rawLaunchParams = window.PalmSystem.launchParams;
|
||||
const parsed = JSON.parse(window.PalmSystem.launchParams);
|
||||
debugInfo.parsedParams = JSON.parse(JSON.stringify(parsed));
|
||||
|
||||
if (parsed["x-webos-app-container-launch"] === true) {
|
||||
debugInfo.containerLaunch = true;
|
||||
debugInfo.finalParams = JSON.parse(
|
||||
JSON.stringify(parsed.details || {})
|
||||
);
|
||||
} else {
|
||||
debugInfo.finalParams = JSON.parse(JSON.stringify(parsed));
|
||||
}
|
||||
} catch (e) {
|
||||
debugInfo.parseError = e.message;
|
||||
}
|
||||
} else {
|
||||
debugInfo.rawLaunchParams = "No PalmSystem or launchParams available";
|
||||
debugInfo.finalParams = {};
|
||||
}
|
||||
|
||||
// 디버그 정보 dispatch
|
||||
dispatch(setDeepLinkDebug(debugInfo));
|
||||
const launchParams = getLaunchParams(dispatch);
|
||||
|
||||
console.log(
|
||||
"initService...{haveyInit, launchParams}",
|
||||
@@ -496,7 +457,7 @@ function AppBase(props) {
|
||||
}, [introTermsAgree, deviceRegistered, dispatch, initService, termsLoading]);
|
||||
|
||||
useEffect(() => {
|
||||
const launchParmas = getLaunchParams();
|
||||
const launchParmas = getLaunchParams(dispatch);
|
||||
const linkTpNm = launchParmas.contentTarget
|
||||
? launchParmas.contentTarget.split("_")[2] || ""
|
||||
: Config.LOG_MENU.APP;
|
||||
|
||||
Reference in New Issue
Block a user