Revert "clearlaunchParams 주석"

This reverts commit f909883b03.
This commit is contained in:
opacity@t-win.kr
2025-08-29 09:46:42 +09:00
parent f044fe39df
commit 7a8a897c6e
3 changed files with 23 additions and 32 deletions

View File

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

View File

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

View File

@@ -903,9 +903,7 @@ export default function MainView({ className, initService }) {
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 없음";
} }