clearlaunchParams 주석
This commit is contained in:
@@ -71,8 +71,6 @@ 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;
|
||||||
|
|
||||||
// 기존 콘솔 메서드를 백업
|
// 기존 콘솔 메서드를 백업
|
||||||
@@ -149,15 +147,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((state) => state.common.deviceRegistered);
|
const deviceRegistered = useSelector(
|
||||||
|
(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) {
|
||||||
@@ -173,7 +171,8 @@ 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 = httpHeader && httpHeader["X-Device-Country"] || "";
|
const deviceCountryCode =
|
||||||
|
(httpHeader && httpHeader["X-Device-Country"]) || "";
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!cursorVisible && !Spotlight.getCurrent()) {
|
if (!cursorVisible && !Spotlight.getCurrent()) {
|
||||||
@@ -221,9 +220,7 @@ 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,12 +237,15 @@ function AppBase(props) {
|
|||||||
if (haveyInit) {
|
if (haveyInit) {
|
||||||
dispatch(changeAppStatus({ connectionFailed: false }));
|
dispatch(changeAppStatus({ connectionFailed: false }));
|
||||||
if (typeof window === "object" && window.PalmSystem) {
|
if (typeof window === "object" && window.PalmSystem) {
|
||||||
dispatch(
|
dispatch(
|
||||||
changeAppStatus({
|
changeAppStatus({
|
||||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||||
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
|
cursorVisible:
|
||||||
})
|
window.PalmSystem &&
|
||||||
);
|
window.PalmSystem.cursor &&
|
||||||
|
window.PalmSystem.cursor.visibility,
|
||||||
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
dispatch(getHomeMenu());
|
dispatch(getHomeMenu());
|
||||||
dispatch(getMyRecommandedKeyword());
|
dispatch(getMyRecommandedKeyword());
|
||||||
@@ -285,7 +285,7 @@ function AppBase(props) {
|
|||||||
visible: true,
|
visible: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
clearLaunchParams();
|
// clearLaunchParams();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[dispatch]
|
[dispatch]
|
||||||
@@ -311,11 +311,15 @@ function AppBase(props) {
|
|||||||
// set foreground flag using delay time.
|
// set foreground flag using delay time.
|
||||||
clearTimeout(foreGroundChangeTimer);
|
clearTimeout(foreGroundChangeTimer);
|
||||||
foreGroundChangeTimer = setTimeout(() => {
|
foreGroundChangeTimer = setTimeout(() => {
|
||||||
console.log(
|
console.log(
|
||||||
"visibility changed !!! ==> set to foreground cursorVisible",
|
"visibility changed !!! ==> set to foreground cursorVisible",
|
||||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||||
JSON.stringify(window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility)
|
JSON.stringify(
|
||||||
); // eslint-disable-line no-console
|
window.PalmSystem &&
|
||||||
|
window.PalmSystem.cursor &&
|
||||||
|
window.PalmSystem.cursor.visibility
|
||||||
|
)
|
||||||
|
); // eslint-disable-line no-console
|
||||||
if (platform.platformName !== "webos") {
|
if (platform.platformName !== "webos") {
|
||||||
//for debug
|
//for debug
|
||||||
dispatch(
|
dispatch(
|
||||||
@@ -329,7 +333,10 @@ function AppBase(props) {
|
|||||||
changeAppStatus({
|
changeAppStatus({
|
||||||
isAppForeground: true,
|
isAppForeground: true,
|
||||||
// Chromium68 호환성을 위해 Optional Chaining 제거
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
||||||
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
|
cursorVisible:
|
||||||
|
window.PalmSystem &&
|
||||||
|
window.PalmSystem.cursor &&
|
||||||
|
window.PalmSystem.cursor.visibility,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -903,7 +903,9 @@ 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 없음";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user