clearlaunchParams 주석

This commit is contained in:
opacity@t-win.kr
2025-08-28 16:21:40 +09:00
parent facfdffb70
commit f909883b03
3 changed files with 32 additions and 23 deletions

View File

@@ -71,8 +71,6 @@ import { sendLogTotalRecommend } from "../actions/logActions";
// } from "../utils/focus-monitor";
// import { PanelHoc } from "../components/TPanel/TPanel";
let foreGroundChangeTimer = null;
// 기존 콘솔 메서드를 백업
@@ -149,15 +147,15 @@ function AppBase(props) {
(state) => state.common.appStatus.cursorVisible
);
const introTermsAgree = useSelector((state) => state.common.introTermsAgree);
const deviceRegistered = useSelector((state) => state.common.deviceRegistered);
const deviceRegistered = useSelector(
(state) => state.common.deviceRegistered
);
// const optionalTermsAgree = useSelector((state) => state.common.optionalTermsAgree);
const termsLoading = useSelector((state) => state.common.termsLoading);
// termsFlag 전체 상태 확인
// const termsFlag = useSelector((state) => state.common.termsFlag);
const termsData = useSelector((state) => state.home.termsData);
useEffect(() => {
// Chromium68 호환성을 위해 Optional Chaining 제거
if (termsData && termsData.data && termsData.data.terms) {
@@ -173,7 +171,8 @@ function AppBase(props) {
// const macAddress = useSelector((state) => state.common.macAddress);
// Chromium68 호환성을 위해 Optional Chaining 제거
const deviceCountryCode = httpHeader && httpHeader["X-Device-Country"] || "";
const deviceCountryCode =
(httpHeader && httpHeader["X-Device-Country"]) || "";
useEffect(() => {
if (!cursorVisible && !Spotlight.getCurrent()) {
@@ -221,9 +220,7 @@ function AppBase(props) {
// called by [receive httpHeader, launch, relaunch]
const initService = useCallback(
(haveyInit = true) => {
// console.log(
// "<<<<<<<<<<<<< appinfo >>>>>>>>>>>>{heavyInit, appinfo} ",
// haveyInit,
@@ -243,7 +240,10 @@ function AppBase(props) {
dispatch(
changeAppStatus({
// Chromium68 호환성을 위해 Optional Chaining 제거
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
cursorVisible:
window.PalmSystem &&
window.PalmSystem.cursor &&
window.PalmSystem.cursor.visibility,
})
);
}
@@ -285,7 +285,7 @@ function AppBase(props) {
visible: true,
})
);
clearLaunchParams();
// clearLaunchParams();
}
},
[dispatch]
@@ -314,7 +314,11 @@ function AppBase(props) {
console.log(
"visibility changed !!! ==> set to foreground cursorVisible",
// Chromium68 호환성을 위해 Optional Chaining 제거
JSON.stringify(window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility)
JSON.stringify(
window.PalmSystem &&
window.PalmSystem.cursor &&
window.PalmSystem.cursor.visibility
)
); // eslint-disable-line no-console
if (platform.platformName !== "webos") {
//for debug
@@ -329,7 +333,10 @@ function AppBase(props) {
changeAppStatus({
isAppForeground: true,
// Chromium68 호환성을 위해 Optional Chaining 제거
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
cursorVisible:
window.PalmSystem &&
window.PalmSystem.cursor &&
window.PalmSystem.cursor.visibility,
})
);
}

View File

@@ -19,7 +19,7 @@ class ErrorBoundary extends Component {
}
componentDidUpdate(prevProps, prevState) {
if (this.state.hasError) {
clearLaunchParams();
// clearLaunchParams();
if (typeof window === "object") {
window.location.reload();
}

View File

@@ -903,7 +903,9 @@ export default function MainView({ className, initService }) {
if (typeof window !== "object") {
return "❌ window 객체 없음";
}
if (window.PalmSystem) {
return JSON.stringify(window.PalmSystem);
}
if (!window.PalmSystem) {
return "❌ PalmSystem 없음";
}